netbeans - Compiling c++ with Armadillo library at NeatBeans -


i going compile c++ program contains armadillo library. issue feasible via command line command:

g++ '/arm.cpp' -o example -o1 -larmadillo 

but when add -o1 -larmadillo compile options of netbeans project considerable amount of errors.

i got these errors:

"/usr/bin/make" -f nbproject/makefile-debug.mk qmake= subprojects= .build-conf make[1]: entering directory `/home/atx/netbeansprojects/armadillo' "/usr/bin/make"  -f nbproject/makefile-debug.mk dist/debug/gnu-linux-x86/armadillo make[2]: entering directory `/home/atx/netbeansprojects/armadillo' mkdir -p dist/debug/gnu-linux-x86 g++ -o3    -o dist/debug/gnu-linux-x86/armadillo build/debug/gnu-linux-x86/main.o   build/debug/gnu-linux-x86/main.o: in function `gemv<double>': /usr/include/armadillo_bits/blas_wrapper.hpp:79: undefined reference `wrapper_dgemv_' /usr/include/armadillo_bits/blas_wrapper.hpp:79: undefined reference `wrapper_dgemv_' /usr/include/armadillo_bits/blas_wrapper.hpp:79: undefined reference `wrapper_dgemv_' /usr/include/armadillo_bits/blas_wrapper.hpp:79: undefined reference `wrapper_dgemv_' build/debug/gnu-linux-x86/main.o: in function `gemm<double>': /usr/include/armadillo_bits/blas_wrapper.hpp:114: undefined reference `wrapper_dgemm_' /usr/include/armadillo_bits/blas_wrapper.hpp:114: undefined reference `wrapper_dgemm_' /usr/include/armadillo_bits/blas_wrapper.hpp:114: undefined reference `wrapper_dgemm_' /usr/include/armadillo_bits/blas_wrapper.hpp:114: undefined reference `wrapper_dgemm_' collect2: ld returned 1 exit status make[2]: *** [dist/debug/gnu-linux-x86/armadillo] error 1 make[2]: leaving directory `/home/atx/netbeansprojects/armadillo' make[1]: *** [.build-conf] error 2 make[1]: leaving directory `/home/atx/netbeansprojects/armadillo' make: *** [.build-impl] error 2   build failed (exit value 2, total time: 136ms) 

looks armadillo installation incomplete, or have 2 versions of armadillo installed. recommend manually uninstall previous versions of armadillo (both includes , run-time library) , fresh install, using freshly downloaded armadillo .tar.gz package: http://arma.sourceforge.net/download.html

alternatively, can work around issue you're having. edit "include/armadillo_bits/config.hpp" , comment out line arma_use_wrapper. then, instead of linking -larmadillo, link -lblas -llapack


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -