|
Boost Users : |
From: Chris Weed (chrisweed_at_[hidden])
Date: 2007-12-30 17:50:21
On Dec 30, 2007 9:11 AM, Eswar K <kja.eswar_at_[hidden]> wrote:
> Hi,
>
> I am a newbie to Boost. I am writing a sample code using the Boost libaries
> and am getting the following error during linking.
>
> Command Line Usage
>
> g++ -I /usr/include/boost/ example.cpp -o example.o
>
Shouldn't this be something like
g++ -L /usr/include/boost/ -lboost_program_options example.cpp -o example.o
[substitute the name of the program options library on your system for
boost_program_options]
Chris
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