Forum Discussion
Altera_Forum
Honored Contributor
12 years agoLinking error. Problem on "undefined reference to...." in NIOS II IDE 11sp1
hello! I am new in quartus 11 and NIOS II IDE 11sp1 for development. The project concludes four source files. the main() function is in my_file_for_blank_project_0.cpp the other t...
Altera_Forum
Honored Contributor
12 years agoI think this happens because your are mixing C and C++ source files.
For example, If you want to call C++ code from a C source file you need the following definition in .cpp file: extern "C" int test_cpp_call (int n); int test_cpp_call (int n) { .... }