On Thursday 21 July 2005 17:11, Weining Hao wrote: > I checked out boost from Boost CVS repository on July > 12th. I have built and installed the boost by using > command "bjam install". And now I want to compile > quickbook and boostbook. > > 1) For quickbook, shall I use the g++ command: > g++ -I/home/hnn/boost quickbook.cpp -o quickbook > or the build tool bjam to compile it? > > I tried the g++ command line, then the following > errors happened: > > /tmp/ccclMAAu.o(.text+0x912): In function `main': > : undefined reference to > > `boost::program_options::options_description::options_description[in-charge >](std::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&, > unsigned)'
...... > Could someone tell me the reason? You did not link to the Boost.Program_options library, which is used by quickbook. Assuming you've built Boost so that libraries are in /usr/local/lib you need to add -L /usr/local/lib -lboost_program_options to gcc command line. If you have built to some other location -- adjust the path accordingly. - Volodya ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Boost-docs mailing list [email protected] Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs
