I'm using a macbook to program some bits of code here and there. Recently I wanted to do something in C++ together with the armadillo library... but after installation and everything it doesn't seem to work...
For instance I can write arma::mat variable, etc but when I run this code in TextMate:
vec q = randu(5);
cout << normalise(q);
I get this error output:
"Undefined symbols for architecture x86_64: "_wrapper_dgesdd_", referenced from: void arma::lapack::gesdd(char*, int*, int*, double*, int*, double*, double*, int*, double*, int*, double*, int*, int*, int*) in test-56d704.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) rm: /var/folders/sh/vr2n15ln47j0k33yh1j0_tyw0000gn/T/test.cpp.Sfz5vezN: No such file or directory
The weird thing is that if I don't use the normalise or norm functions it compiles well..
I include the library as #include '/usr/local/include/armadillo'
Please help!
Edit: I've installed the armadillo package both trying with "brew install armadillo" but also with the steps mentioned in the README.txt if you download armadillo from their webpage. I'm at a total loss..
Aucun commentaire:
Enregistrer un commentaire