Create a Shared Library with g++

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

Comments

Popular posts from this blog

Vim vi how to reload a file your editing