I have a .so
library where all code was written in plain ANSI C, so compiling it is straightforward. Now, I need to add C++ code in it. What would be the compilation process now?
Do I have to compile C++ files with g++
and the rest with gcc
, but what about linking into .so
file, do I do this with g++
?
Thanks!