This post has already been read 1476 times!

To create the shared (*.so) library, use these steps
Example instructions for compiling

1) g++ -fpic -c CLib.cpp
2) g++ -shared -o libCLib.so CLib.o
3) g++ CLibTest.cpp -o CLibTest -L. -lCLib

C Programming Tutorial in Linux #040 - Dynamic Shared Library
https://www.youtube.com/watch?feature=player_detailpage&list=WL&v=c8TxXFEDDF4

Comments are closed.

Post Navigation