Are there any differences in the linking process between gcc and g++?
I have a big C project and I just switched part of the code to C++. The code isn\'t using std C
I think that the g++ linker will look for the CPP mangled function names, and it is different from the C ones. I'm not sure gcc can cope with that. (Provided you can explicitly use the C version rather than the C++ one).
It should work if you have
extern "C" {
}
in your code and the object file has been compiled with g++ -c. But I won't bet on this.