i am trying to get a library to work in my c++ project and there is no clear instructions of how to do this for people who are not used to c++
the following link is the closest i have come
it states the following
-L/path/to/my/library/folder -ldllname
also the following thread states the following
gcc yourfile.cpp -lblah
now from what i can see the command is -l
+ filename
, for example my filename is directory/libtest.so
it would be -ldirectory/libtest.so
, is this correct, could someone clarify
i am currently using the following command to compile my maincpp.cpp
file, would like to however include a .so file called for example ./directory/libtest.so
g++ -fPIC -o libgetmacip.so -shared -I $JAVA_HOME/include -I $JAVA_HOME/include/linux maincpp.cpp cpptoinclude.cpp