Forum Discussion
Altera_Forum
Honored Contributor
11 years agoI remember that if you define a function (i.e. testcpp() ) in a cpp file, you must declare it with the extern "C" directive in order to call it from a .c files.
extern "C" int testcpp (int n); int testcpp (int n) { /* function body */ } I think you must use something similar for calling .c functions from .cpp source files.