Thanks, Chris. It worked.

Regards,
Eswar

On Dec 31, 2007 4:20 AM, Chris Weed <chrisweed@gmail.com> wrote:
On Dec 30, 2007 9:11 AM, Eswar K <kja.eswar@gmail.com> 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@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users