Hello everybody.
This is my first post here and I have a problem that I am not able to solve for some time now.
I have written a piece of software on a MAC and have been attempting to port it to SuSe 11.1. The problem is that one of the libraries that is used by the code refuses to link. It could be because it doesn't like very much, but I am hoping that the explanation is simpler.
The library is called vl (
http://www.vlfeat.org/). It is made in c and compiles fine. Thereafter I copy libvl.so to /usr/local/lib and the header files in /usr/local/include. My source compiles fine. The offending command is:
Quote:
g++ -L"/home/vess/phd/cpppoj/SFM/extern/libs" -L/usr/local/lib -L/usr/lib -o"SFM" [...object files here ...] -llog4cplus -llapack -lANN -lIL -lvl -lc -lILU
|
Quote:
undefined reference to `vl_sift_new(int, int, int, int, int)'
undefined reference to `vl_sift_process_first_octave...
undefined reference to `vl_sift_process_next_octave...
undefined reference to `vl_sift_detect(_VlSiftFilt*)'
[...]
collect2: ld returned 1 exit status
make: *** [SFM] Error 1
|
Running nm reports that all simbols are there. For example:
Quote:
$ nm /usr/local/lib/libvl.so | grep vl_sift_new
0000f030 T vl_sift_new
|
I am running the compilation from Eclipse where I have included all necessary paths, and /usr/local/lib is in /etc/ld.so.conf.
Please let me know what I am missing.
I will appreciate any help.
Cheers