C++ Usage Issues - Problems, Solutions, and Suggestions

Ralf Corsepius ralf.corsepius at rtems.org
Thu Jun 21 14:46:04 UTC 2007

On Thu, 2007-06-21 at 10:03 -0400, Robert S. Grimes wrote:
> Hello,
> I'm using RTEMS to develop a three processor system, and I'd like to use
> C++ for my application development;

> 3. Third attempt at make:

>     LD_LIBS   += -lstdc++
No, using "<target>-gcc -lstdc++" is never correct. You have to use 
"<target>-g++" instead of "<target>-gcc" to link c++ code.

> The other errors are due to the rtems/rtems_bsdnet.h header file, and
> can be eliminated by changing the inclusion of this file like this:
>     extern "C" {
>     #include <rtems/rtems_bsdnet.h>
>     }
If this works, you've found a bug inside of this header. This header must be C-safe.


More information about the users mailing list