Boost logo

Boost Users :

From: Eswar K (kja.eswar_at_[hidden])
Date: 2007-12-31 05:32:53


Thanks, Chris. It worked.

Regards,
Eswar

On Dec 31, 2007 4:20 AM, Chris Weed <chrisweed_at_[hidden]> wrote:

> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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