Hello,
I'm working on a µC/OS II project using some C++.
Compiling the example project "Hello MicroC/OS-II" works and simply changing the file extension from .c to .cpp or changing the target type in the makefile will still, in contrast to shacler, let project compile. But the Nios II build environment seems to have a problem to link the object files:
make: *** [Cpp_Test.elf] Error 1 Cpp_Test C/C++ Problem
and in the console output:
[...] Cpp_Test_bsp/HAL/src/alt_main.c:154: undefined reference to `main'
Any hints on how to fix this problem? According to the documentation C++ should work.
Thanks in advance!