我需要在 C++ 项目中链接 AMD acml 库。
我试图以这种方式编译它:
g++ mainConsole.cpp -L./acml/pgi64_int64/lib -lacml
但我收到此错误:
/usr/bin/ld: skipping incompatible ./acml/pgi64_int64/lib/libacml.so when searching for -lacml
/usr/bin/ld: skipping incompatible ./acml/pgi64_int64/lib/libacml.a when searching for -lacml
/usr/bin/ld: cannot find -lacml
我该怎么做才能解决?