Forum Discussion
Altera_Forum
Honored Contributor
22 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 wi...
Altera_Forum
Honored Contributor
22 years agoFYI, you can also say:
extern "C" int main() {
// C++ codes
} Might be a little easier on the eyes.