Hello,
I have C++ progam that compiles and running well. Now I need to test one feature with c program.
In c program, I am writing one client_wrapper.h and client_wrapper.c file.
In the client_wrapper.h file.
In c file, without any decoration, I implement logic in client_wrapper.c fie.Code:#ifdef __cplusplus extern "C" { #endif char* get_msg() #ifdef __cplusplus } #endif
In my cpp program, I wrote at the begining,
now I'm facing linking problem. Compilion went well and linking is not working.Code:extern "C" { char* get_msg() } ..........in the code I called get_msg(). ...............
Why? where is problem. I am g++ 5.4.0.
Thanks
Sothy