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 Bugs, which is subscribed to Ubuntu. 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 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs