Reply by Dave Helsley November 13, 20012001-11-13
Segev,

The function name is mangled to support overloading. If you want to call a
"C" function from C++, use the extern "C" declaration in the prototyping,
like this:

extern "C" {
void main(int argc, char **argv);
}

You'll need to do this for C-callable assembly language routines you write
as well.

I think that's all the detail you need, but let me know if it's not.

HTH,
Dave Helsley
-----Original Message-----
From: eran segev [mailto:]
Sent: Sunday, November 11, 2001 1:04 AM
To:
Subject: [c54x] c++ support in ccs2 I have a problem when using the c++ in the ccs2.
it occurs to me, even on brd_init() functions ,and
some uart functions
which he throws this :
<Linking>

undefined first referenced
symbol in file
--------- ----------------
_uart_fputc__Fi
h:\dspcode\programcode\Debug\main.obj
_uart_fgets__FPci
h:\dspcode\programcode\Debug\main.obj
>> error: symbol referencing errors -
./Debug/DspCode.out not built

those problems seem to occur only when i integrate c++
code.
does anyone knows what can cause this ?
how to fix ?
maybe some confirguration needed for c++ support ?
Thanks !
Segev Eran
__________________________________________________ _____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to

To Post: Send an email to

To Leave: Send an email to

Archives: http://www.yahoogroups.com/group/c54x

Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/


Reply by eran segev November 11, 20012001-11-11
I have a problem when using the c++ in the ccs2.
it occurs to me, even on brd_init() functions ,and
some uart functions
which he throws this :
<Linking>

undefined first referenced
symbol in file
--------- ----------------
_uart_fputc__Fi
h:\dspcode\programcode\Debug\main.obj
_uart_fgets__FPci
h:\dspcode\programcode\Debug\main.obj
>> error: symbol referencing errors -
./Debug/DspCode.out not built

those problems seem to occur only when i integrate c++
code.
does anyone knows what can cause this ?
how to fix ?
maybe some confirguration needed for c++ support ?
Thanks !
Segev Eran
__________________________________________________