D
Dominik Werder
Hi All,
I've compiled a cpp file with g++ without linking it and got an object
file.
Then I've compiled a C file with gcc and got an object file too.
Now if I try to link it to an executable (the main method is in the C
object) the linker complains about not finding the symbol for a
function declared in the C++ object.
Somebody told me that the two compilers use different symbol names for
the same function names.
He said also it would exist something like a "export this function as
C style" keyword but I didn't find anything.
Could somebody help me with this?
bye!
Dominik
I've compiled a cpp file with g++ without linking it and got an object
file.
Then I've compiled a C file with gcc and got an object file too.
Now if I try to link it to an executable (the main method is in the C
object) the linker complains about not finding the symbol for a
function declared in the C++ object.
Somebody told me that the two compilers use different symbol names for
the same function names.
He said also it would exist something like a "export this function as
C style" keyword but I didn't find anything.
Could somebody help me with this?
bye!
Dominik