[Bug 888495] Re: Can't compile C++ code: "undefined reference to:"
Tomas P
888495 at bugs.launchpad.net
Fri Feb 17 13:55:06 UTC 2012
Let me put here my workaround (steps 2&3 bellow) for people who could
not find any working solution for kubuntu 11.10:
1. apt-get install libarmadillo2 libblas3gf liblapack3gf libarmadillo-dev
2. sudo ln -s /usr/lib/libblas.so.3gf /usr/lib/libblas.so
3. sudo ln -s /usr/lib/liblapack.so.3gf /usr/lib/liblapack.so
then
g++ test.cpp -larmadillo -lblas -llapack
works. Indeed, the other way
g++ -larmadillo -lblas -llapack test.cpp
it doesn't (which means in netbeans you need: project properties -> Build -> Linker -> Libraries -> Other Option.)
--
You received this bug notification because you are a member of Ubuntu
Package Archive Administrators, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/888495
Title:
Can't compile C++ code: "undefined reference to:"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/armadillo/+bug/888495/+subscriptions
More information about the ubuntu-archive
mailing list