LD_LIBRARY_PATH
is the path where the dynamic loader (ld.so
and ld-linux.so
on Linux, dyld
on OS X) looks up libraries. You need this when you run programs that depend on libraries in non-standard paths.
It doesn’t necessarily influence where the linker finds libraries. Use the -L
flag to specify the search path for ld
:
ld -L/opt/gurobi701/linux64/lib -lgurobi_c++ ...
4
solved ld ignores additional pathes