I've got a cpp file a.cpp
and a shared object libA.so
it's gonna use under the same folder, however, when I tried to use g++ to link them together, it declares that it cannot find the library (I checked with ldd
afterwards).
This is the command I used
g++ a.cpp -I . -L. -lA
Any idea how this might be solved?
Possible duplicates: building and linking a shared library