
24 Feb
2011
24 Feb
'11
10:32 a.m.
Here's the command used for linking: /bin/bash ../libtool --tag=CXX --mode=link g++ -Wno-deprecated -g -O2 - lboost_serialization -L/local/cedric/boost_1_45_0/stage/lib -o test test- main.o ../includes/Parser/libparser.a -lgsl -lgslcblas -lm
Hi Cedric, I did't understand exactly what you meant with 'compiling remotely' (cross-compiling?), but if I don't mistake, you should specify first -L, then -l in command line. If changing order does not help, use binutils to find where the symbols are located. Pay attention as well to linker messages like 'skipping ... due to incompatible format' or something alike if you cross-compile. -- Slava