I'm using libraries a, b, and c to create library x. I want to give library x to my friends without them Having to have libraries a, b, c. I've tried .so files and .a files but .so crashes before first line of main and .a requires libraries a, b, and c. Using ubuntu g++ and c++11
Asked
Active
Viewed 53 times
1 Answers
0
What you should do is compile your library X link libraries a, b and c Staticly.
This answer should point you in the right direction. Static link of shared library function in gcc
-
So something like `g++ -la -lb -lc -o X.so source.cpp`? – William Thompson Mar 27 '17 at 14:12