[En-Nut-Discussion] Nut/OS and C++

Harald Kipp harald.kipp at egnite.de
Mon Nov 8 21:13:40 CET 2004


While reading various mailing lists you're not
the only one having problems with AVR and C++.
I never tried this myself.

Anyway, all related support had been included
in AVRGCC. The main problem with Nut/OS might
be, that not all function prototypes have been
marked as C declarations with

#ifdef __cplusplus
extern "C" {
#endif
...
#ifdef __cplusplus
}
#endif

I'd suggest to try a simple, pure, non-RTOS
Hello-World-Sample first. If that works, I'll
be happy to help with fixing Nut/OS related
problems. If it doesn't, you may try
http://www.avr1.org/mailman/listinfo/avr-gcc-list
for further help.

Many people think that C++ doesn't make much sense
on 8-bit platforms. But does it make more sense to
run TCP/IP on these? :-)

Harald



At 12:35 08.11.2004 +0200, you wrote:
>Hello,
>
>Has someone experiences with using C++ with WinAVR and the Nut/OS?
>My attempts failed miserably so far.
>
>Cheers,
>
>Christian Wieser




More information about the En-Nut-Discussion mailing list