Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22307

Building a library consisting of C and C++ files

$
0
0

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!


Viewing all articles
Browse latest Browse all 22307

Latest Images

Trending Articles



Latest Images