I am trying to link a .a library that was built with gcc to a program built using g++. But the name mangling is different. How can I do this? Thanks, CP
+5
A:
In your C++ code, you just need to wrap your includes of the gcc library header file(s) in extern "C":
extern "C" {
#include "my_library.h"
}
anon
2009-06-03 14:49:24
Thanks that did it, and thanks for the quick reply.
CptanPanic
2009-06-03 14:52:13