18 Sep
2013
18 Sep
'13
6:32 a.m.
On Tue, 17 Sep 2013 19:20:54 +0200, Ulf Samuelsson
Solved! The Libraries need to be at the end during the link phase.
$ g++ -c -I/usr/include -Iinclude -std=c++0x -o udp_echo_client.o udp_echo_client.cpp $ g++ -o udp_echo_client udp_echo_client.o -L/usr/lib -lboost_filesystem -lboost_system -lpthread
works
BR Ulf
... what means that the linker uses static libraries (.a). Use -t linker flag (-Wl,-t to gcc) to debug which libraries linker finds and which it takes. // The *.so are in -dev packages in some distributions. Maybe you need boost*dev package(s) installed in ubuntu? Regards, Slava