When using g++, I have been given the following commands to run:
g++ main.cpp libShared.so -Wl,-rpath, -lboost_system -lboost_filesystem
Now, libShared.so
is in the same directory as my makefile, and I have been told that the -Wl
and -rpath
commands are used to tell my executable to look in the same directory when searching for this shared library.
My question is: What is the purpose of the commas after -Wl
and -rpath
?