
On 2013-09-18 08:32, Slava wrote:
On Tue, 17 Sep 2013 19:20:54 +0200, Ulf Samuelsson
wrote: 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?
No, the solution is simple. The -l<library> must be AFTER the reference to the object files. FAIL: g++ -lboost_system myfile.o OK: g++ myfile.o -lboost_system Maybe there is a good reason for this. BR Ulf
Regards, Slava
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users