Boost logo

Boost Users :

Subject: Re: [Boost-users] boost build problem?...
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-04-28 12:59:46


On 04/26/2011 12:16 PM, Krzysztof wrote:
> I wrote a few lines of code just for start with a library of boost (program_options). Before I did it I had built boost library as prescribed and *.a and *.so
> files were created in my /home/krzysztof/Documents/Projects/boost/lib directory. However, compilation fails because of undefined references of some
> external symbols which belongs to program_options library. Could anyone help me with it? Below, there is the code and g++ output.
> (Linux 64b, Qt Creator and Code::Blocks used as IDE)
> <snip>
> g++ -o fetxedit main.o -L/usr/lib -L/home/krzysztof/Documents/Projects/boost/lib -lQtCore -lpthread
> main.o: In function `main':
> /home/krzysztof/Documents/Projects/fetxedit-build-desktop/../fetxedit/main.cpp:8: undefined reference to
> `boost::program_options::options_description::m_default_line_length'

You're missing -lboost_program_options.

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at