AnsweredAssumed Answered

Calling a C++ function from a C function

Question asked by Inno on Nov 17, 2010
Latest reply on Mar 21, 2011 by WassimB

Hi

 

How can I call a c++ (*.cpp) function from a c (*.c) function.

 

When I try to do this the compiler gives me the following linker error:

 

Linking...

 

[Error li1021]  The following symbols referenced in processor 'p0' could not be resolved:
'calc_cplusplus_function [_calc_cplusplus_function]' referenced from '.\Release\example.doj'

 

Linker finished with 1 error
cc3089: fatal error: Link failed
Tool failed with exit/exception code: 1.
Build was unsuccessful.

 

Thanks

Outcomes