|
Boost Users : |
Subject: [Boost-users] How do you compile Boost C++ code in Ubuntu?
From: Giovanni (giovanni.ong_at_[hidden])
Date: 2013-02-07 05:06:57
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!
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net