Error with <xdc/std.h> in CCSv3.3 [message #344887] |
Tue, 28 July 2009 02:53  |
Eclipse User |
|
|
|
I have a project that I'm building with CCSv3.3 as well as XDC tools. When
I build with CCSv3.3 (btw, it's not a BIOS project), the header file is
found but I get the following errors if I include <xdc/std.h>; here's a
sample of the errors:
"C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 113: error #20:
identifier "xdc_IArg" is undefined
"C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 114: error #20:
identifier "xdc_UArg" is undefined
identifier "xdc_IArg" is undefined
"C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 136: warning #1132-D:
returning pointer to local variable
"C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 133: warning #552-D:
variable "u" was set but never used
"C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 139: error #20:
identifier "xdc_IArg" is undefined
If I just use <std.h>, it works fine. On the other hand, when I build the
same source files with the XDC tools, I get an error if I use <std.h>, but
it works fine if I use <xdc/std.h>.
Any suggestions on how to get the same source to compile with both tools?
|
|
|
Re: Error with <xdc/std.h> in CCSv3.3 [message #373797 is a reply to message #344887] |
Wed, 29 July 2009 11:33  |
Eclipse User |
|
|
|
sgspecker wrote:
> I have a project that I'm building with CCSv3.3 as well as XDC tools.
> When I build with CCSv3.3 (btw, it's not a BIOS project), the header
> file is found but I get the following errors if I include <xdc/std.h>;
> here's a sample of the errors:
>
> "C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 113: error #20:
> identifier "xdc_IArg" is undefined
> "C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 114: error #20:
> identifier "xdc_UArg" is undefined
> identifier "xdc_IArg" is undefined
> "C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 136: warning #1132-D:
> returning pointer to local variable
> "C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 133: warning #552-D:
> variable "u" was set but never used
> "C:/TI/xdctools_3_10_03/packages/xdc/std.h", line 139: error #20:
> identifier "xdc_IArg" is undefined
>
> If I just use <std.h>, it works fine. On the other hand, when I build
> the same source files with the XDC tools, I get an error if I use
> <std.h>, but it works fine if I use <xdc/std.h>.
>
> Any suggestions on how to get the same source to compile with both tools?
>
Always use <xdc/std.h>. This ensures that you do not pickup the wrong
header (there are many files named std.h)
To use this header (or any RTSC module) with any build tool you must
also supply some #defines on the compile line. This is described on the
RTSC-pedia here: http://rtsc.eclipse.org/docs-tip/Integrating_RTSC_Modules.
|
|
|
Powered by
FUDForum. Page generated in 0.03739 seconds