7 Feb
2013
7 Feb
'13
10:06 a.m.
Greetings, I cannot compile my Boost C++ code. Initially, it complains of “undefined reference”. When I try to resolve this by including the library, I get the "/usr/bin/ld: cannot find -lboost_system" error. From the Terminal: Go Bears >echo $LD_LIBRARY_PATH /usr/lib/libboost_system.so Go Bears >make all g++ -L/usr/lib -lboost_system get_sys_info.cpp /usr/bin/ld: cannot find -lboost_system collect2: ld returned 1 exit status make: *** [all] Error 1 Go Bears > Do you know what stupid mistakes did I make?
From my Makefile: all: g++ -L/usr/lib -lboost_system get_sys_info.cpp ./a.out
Thank you so much, and have an awesome day!