Altera_Forum
Honored Contributor
21 years agoProblem mixing C and C++ codes
Hi all,
I am justing using NIOS IDE for one day. I can compile/link C sources in IDE. I can also compile C++ sources, but linker complained "undedfined main", since I compile the source with the 'main' function in a C++ way (because the main function needs to access C++ programs. Any suggestion how to mix C codes with C++ classes? Regards, Kwok Wong