From: Troy H. <tro...@hp...> - 2009-09-21 15:01:27
|
On 09/19/09 22:08, Wei Feng wrote: > Hi Troy, > > Thanks for the explanation. I did what you suggested. First, when I did: > > ls /usr/lib/libJudy* > > I got 3 files: > > /usr/lib/libJudy.a /usr/lib/libJudy.so.1 /usr/lib/libJudy.so.1.0.1 Sorry, I should have said libJudy.so*, please rm the libJudy.a file as that is the one causing problems. > Then I copied /usr/lib/libJudy.so.1.0.1 (since I did not have libJudy.so.1.0.3) to my local directory where my cpp file existed. I added "-L" to the *FLAGS lines and "-Wl -rpath $(pwd)" to the *LIBS lines. But when I tried to compile with: It should be "-Wl,-rpath,$(pwd)", make sure you have commas not spaces! Troy |