SyntaxFix
Write A Post
Hire A Developer
Questions
If your library name is say libxyz.so and it is located on path say:
libxyz.so
/home/user/myDir
then to link it to your program:
g++ -L/home/user/myDir -lxyz myprog.cpp -o myprog