Thursday, August 30, 2012

[compile] SVM_struct

Recently, i'm interested in SVM struct software: http://tfinley.net/software/svmpython2/ However, when i'm compiling it, i got the following error. /usr/bin/ld: note: 'exp@@GLIBC_2.2.5' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libm.so so try adding it to the linker command line /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libm.so: could not read symbols: Invalid operation I googled the problem, and find that it is caused by the gcc-4.6 compiler. The problem was gone after i removed -lm in LDFLAGS