Curious if anyone can help me. I have written a C++ program with
multiple source files which uses functions from a C library. This
library was not written by me but I have added two function calls to my
C++ code from within the C library code. I then compile and create the
library using 'cc' and the 'ar' command. To compile the C++ program
I use 'g++' to create object code and then link to the library using
'cc'. Originally I overcame the C to C++ linking problem, by using the
name created by g++ within the object code. For example, the
'recover_process' function became 'recover_process__Fv'. This was put
in the C library source and everything linked fine.
Now, however, I am running into more linking problems.
What is the appropriate way to make calls to C++ functions from within a
C program? Thanks for the help.