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:

  1. establish symbolic link manually. possible (and common) ld cannot recognize liblapack.so.3gf or liblapack.so.3.0.1 or liblapack.so. can set link ln -s liblapack.so.3gf liblapack.so
  2. install liblapack-dev package instead if you're using ubuntu or debian repos. unclear reasons, liblapack3gf not same liblapack-dev. not sure if in circumstances, both or not same thing.

i think first item should able resolve problem (hopefully).


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -