On 10/16/20 6:55 PM, Mark Galassi wrote:
There are 2 places that make it hard to miss that your linking needs to
have both -lgsl and -lgslcblas:
You need to link libgsl.so to libgslcblas.so
Even though `pkg-config --libs gsl` returns both libraries linkers can
later remove the libgslcblas.so due to |-Wl,--as-needed that projects
use. This is because they see that ||libgslcblas.so isn't used by the
project itself.
|
|Having a library (libgsl.so) with unresolved symbols that are resolved
in a companion library (||libgslcblas.so) is an error-prone situation
for this reason.|
|
|
|Thanks,
|
|Yuri|
|
|