Armadillo QT Editor Windows 7
-
Hi everyone,
I keep getting the following error, among others:
C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_blas.hpp:189: error: undefined reference to `ddot'
I have my pro file as follows:
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qtSOURCES +=
main.cpp#INCLUDEPATH += C:\armadillo-9.400.3\include \
#LIBS += \
-LC:\armadillo-9.400.3\lib_win64\
-llibblas32 \
-lliblapack32
INCLUDEPATH += C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include \
LIBS +=
-LC:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\examples\lib_win64
-llapack_win64_MT
-lblas_win64_MTHow do I fix this error? Thank you so much!
-
I'm not sure this is the actual problem, but I had such a problem before:
-LC:\armadillo-9.400.3\lib_win64\
- prefer forward slash / over backslash \ (also in C++ source code)
- Remove the trailing slash. It can be interpreted as line continuation
To further debug your problem, please find out which library is defining your missing symbol.
Regards
-
This isn't the whole thing...
C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function
ZN4arma4blas3dotIdEET_jPKS2_S4_': C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_blas.hpp:189: error: undefined reference to
ddot'
C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In functionZN4arma6lapack5getrfIdEEvPiS2_PT_S2_S2_S2_': C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_lapack.hpp:42: error: undefined reference to
dgetrf'
C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function `ZN4arma4blas4gemvIdEEvPKcPKiS5_PKT_S8_S5_S8_S5_S8_PS6_S5_': -
@helpPls You should use / instead of \ in paths:
INCLUDEPATH += C:/armadillo-9.400.3/include
"So comments are \ now?" - which comments do you mean? \ is an escape character and at the end of a line in pro files it means that the line continues in the next line:
LIBS += -LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64 \ -llapack_win64_MT \ -lblas_win64_MT
-
Hi..so my pro file looks like this now. The new error message is at the bottom.
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qtSOURCES += /
main.cpp#INCLUDEPATH += C:/armadillo-9.400.3/include
#LIBS += /
-LC:/armadillo-9.400.3/lib_win64/
-llibblas32 /
-lliblapack32
INCLUDEPATH += C:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/include
LIBS +=
-LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64
-llapack_win64_MT
-lblas_win64_MT:-1: error: fatal error: no input files
-
TEMPLATE = app CONFIG += console c++11 CONFIG -= app_bundle CONFIG -= qt SOURCES += main.cpp INCLUDEPATH += C:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/include LIBS += -LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64 \ -llapack_win64_MT \ -lblas_win64_MT
-
-
-