Registered Member
|
Hi,
After setting up eigen library to a correct place, I wrote simple c++ code to test it. However never succeeded. To simplify the problem, the test code is: #include <Eigen/Core> using namespace Eigen; int main( int argc, char* argv[] ){ return 0; } This is fine if I just do the compilation: g++ -c -I $HOME/local/include/ eigen_test.cpp but when I try to link it: $ g++ eigen_test.o -O eigen_test I got nothing but complains on:
Is there anyone can help me out by telling me why the link process fails to work? As I have no idea where does the multiple definition come from. Thanks a lot.
Last edited by BreakDS on Fri Oct 08, 2010 6:26 pm, edited 1 time in total.
|
Moderator
|
you used a capitalized O in -O, this one is correct:
$ g++ eigen_test.o -o eigen_test |
Registered Member
|
Thanks ~ I didn't notice that. Sorry for making this kind of mistake. ^_^ |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]