TI E2E Community (Beta)
Welcome to the TI E2E (Engineer-to-Engineer) Community! We invite you to freely and openly interact with your peer Engineers, TI Engineers, and other experts in order to ask questions, share knowledge, explore ideas, and help solve problems.
More Search Options

Updating an old project: generated file does not compile

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 2 Followers

Top 25 Contributor
178 Posts
Community Member
Flamingo posted on 4 Nov 2009 5:12 PM

I'm trying to resurrect an old DSP6747 project for debugging on my custom baord that is based on the evmOMAPL137 board.

All my personal files compile. The s64 file assembles. I'm getting compile errors in the generated .c file. The file consists of an include statement. The included file starts with a list of includes:

#include <std.h>
#include <hst.h>
#include <swi.h>
#include <tsk.h>
#include <log.h>
#include <sem.h>
#include <mbx.h>
#include <sts.h>

I believe my problem is with the interaction of this list and the include paths:

-i"." -i"../common/includes" -i"C:/xdctools_3_10_03/packages"

The only std.h file that is in the path is the xdc/std.h, which is where the compiler errors are coming from:

"C:/xdctools_3_10_03/packages/xdc/std.h", line 113: error: identifier "xdc_IArg" is undefined
"C:/xdctools_3_10_03/packages/xdc/std.h", line 114: error: identifier "xdc_UArg" is undefined
"C:/xdctools_3_10_03/packages/xdc/std.h", line 118: error: identifier "xdc_IArg" is undefined
"C:/xdctools_3_10_03/packages/xdc/std.h", line 119: error: identifier "xdc_UArg" is undefined
"C:/xdctools_3_10_03/packages/xdc/std.h", line 128: error: identifier "xdc_IArg" is undefined
"C:/xdctools_3_10_03/packages/xdc/std.h", line 131: error: identifier "xdc_IArg" is undefined
etc.

All of my fixes in the past have involved creating my own copies of these .h files and creating a repaired version of them. What is the correct approach for fixing this problem?

Please note that the include is for std.h, not xdc/std.h. Somehow is it getting the xdc added to its include path, but I'm not sure how. I've looked at the file-specific options for this generated file, but the include paths there do not include xdc.

All Replies

Top 10 Contributor
654 Posts
Texas Instruments Employee

I think if you are building with XDC you are going to get the std.h from XDC.

Try adding this line to your compiler build options:

 -d"xdc_target_types__=ti/targets/std.h"

 

Page 1 of 1 (2 items) |

ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". TI AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY TI. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.