Forum Discussion
Altera_Forum
Honored Contributor
14 years agoC++ compiler errors
I am new to C++/ucos II. Compiling a simple test C++ program gets the following error messages: error: 'alt_irq_register' was not declared in this scope error: invalid conversion from ...
Altera_Forum
Honored Contributor
12 years agoHello,
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!