【发布时间】:2015-06-08 16:02:07
【问题描述】:
我正在尝试对已下载的 Armadillo 库 (5.2) 运行测试,并且我已取消注释 config.hpp 文件中的 ARMA_USE_LAPACK 和 ARMA_USE_BLAS 行,如 Windows here 推荐的那样。我已将 .pro 文件设置为这样
QT += core
QT -= gui
TARGET = armatest
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += \
main.cpp
INCLUDEPATH += C:\Armadillo\include
LIBS += -LC:\Armadillo\lib_win64
-llapack_win64_MT
-lblas_win64_MT
考虑到lapack_win64_MT.lib 和blas_win64_MT.lib 是位于C:\Armadillo\lib_win64\ 中的库
我不断收到的错误是
undefined reference to 'dgetrf_'
undefined reference to 'ddot_'
undefined reference to 'dgemv_'
等等。好像我没有正确链接库。我错过了什么?
我使用 MinGW 4.9.1 作为编译器
【问题讨论】:
标签: c++ qt gcc linker armadillo