Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Error with <xdc/std.h> in CCSv3.3
Error with <xdc/std.h> in CCSv3.3 [message #344887] Tue, 28 July 2009 06:53 Go to next message
sgspecker is currently offline sgspeckerFriend
Messages: 8
Registered: July 2009
Junior Member
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 15:33 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
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.
Previous Topic:Hungrier % in Diag?
Next Topic:statically inserting an instance handle into another module's mod state
Goto Forum:
  


Current Time: Sat Apr 20 01:49:51 GMT 2024

Powered by FUDForum. Page generated in 0.03336 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top