Forum Discussion
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by kwokwong@Jul 27 2004, 04:30 AM 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 --- Quote End --- Problem solved: define C main function in C++ program extern "C" { int main() { // C++ codes } }