You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make fails at link stage on standard linux machine:
ubuntu 22.04 on amd64.
GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
libopenblas-base:amd64 0.3.20+ds-1
Since -lopenblas is part of FLINK it appears before the object files. But the correct link order is at the end, since it is a dependency of the object files.
Take-home message:
If object or library AA needs a symbol from library BB, then AA should come before library BB in the command-line invocation of the linker.
The text was updated successfully, but these errors were encountered:
make
fails at link stage on standard linux machine:ubuntu 22.04 on amd64.
GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
libopenblas-base:amd64 0.3.20+ds-1
Error:
Cuprit is the link order:
smooth-surface/makefile
Line 151 in 20b53cb
Since
-lopenblas
is part ofFLINK
it appears before the object files. But the correct link order is at the end, since it is a dependency of the object files.Moving
-lopenblas
to the end fixes it.Here's a URL on link order:
https://eli.thegreenplace.net/2013/07/09/library-order-in-static-linking
Take-home message:
If object or library AA needs a symbol from library BB, then AA should come before library BB in the command-line invocation of the linker.
The text was updated successfully, but these errors were encountered: