makefile - Linux using lapack library -
i have error making code project because of believe missing routine lapack:
homographyinit.cc:(.text+0x385): undefined reference `dgesvd_'
i think need add lapack library somehow makefile. here part of makefile:
cc = g++ compileflags = -i my_custom_include_path -d_linux -d_reentrant -wall -o3 -march=nocona -msse3 linkflags = -l my_custom_link_path -lgvars3 -lcvd
i tried doing following no avail:
cc = g++ compileflags = -i my_custom_include_path -d_linux -d_reentrant -wall -o3 -march=nocona -msse3 linkflags = -l my_custom_link_path -lgvars3 -lcvd **-llapack**
result:
make ... /usr/bin/ld: cannot find -llapack collect2: ld returned 1 exit status
how can add lapack project? pretty sure installed correctly, though willing double-check somehow.
it looks liblapack isn't in path ld can find. suggest 2 things:
- establish symbolic link manually. possible (and common) ld cannot recognize
liblapack.so.3gf
orliblapack.so.3.0.1
orliblapack.so
. can set linkln -s liblapack.so.3gf liblapack.so
- install
liblapack-dev
package instead if you're using ubuntu or debian repos. unclear reasons,liblapack3gf
not sameliblapack-dev
. not sure if in circumstances, both or not same thing.
i think first item should able resolve problem (hopefully).
Comments
Post a Comment