Program_options Link Error
Contents |
here for a quick overview of undefined reference to `boost::program_options::options_description::options_description the site Help Center Detailed answers to any questions
Boost Program_options Link
you might have Meta Discuss the workings and policies of this site About Us boost/program_options.hpp' file not found Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Undefined Reference To `boost::program_options::validate
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cannot find C++ library when linking, error program_options is not a namespace name compliling the `boost::program_options` example up vote 13 down vote favorite 2 I am trying to compile the multiple_sources.cpp to compile on my computer. I am running Xubuntu Lucid Lynx fully updated. It will compile without issue with g++ -c multiple_sources.cpp but when I try to link and make an exectuable with g++ multiple_sources.o I get: multiple_sources.cpp:(.text+0x3d): undefined reference to `boost::program_options::options_description::m_default_line_length' multiple_sources.cpp:(.text+0x87): undefined reference to `boost::program_options::options_description::options_description(std::basic_string
here for a quick overview of the site Help Center
Undefined Reference To `boost::program_options::arg'
Detailed answers to any questions you might have Meta
Lboost_program_options
Discuss the workings and policies of this site About Us Learn more about Stack boost_program_options-mt Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question http://stackoverflow.com/questions/3355372/cannot-find-c-library-when-linking-error-compliling-the-boostprogram-optio x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Linking to boost::program_options does not work properly up vote 5 down vote favorite The following library files http://stackoverflow.com/questions/14397246/linking-to-boostprogram-options-does-not-work-properly exist: cls /usr/local/Cellar/boost/1.51.0/lib $ ls libboost_program* libboost_program_options-mt.a libboost_program_options-mt.dylib I include the following header with #include here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://stackoverflow.com/questions/12179154/undefined-reference-to-boostprogram-optionsoptions-descriptionm-default-l about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users http://www.synfig.org/forums/viewtopic.php?t=5044 Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up undefined reference to `boost::program_options::options_description::m_default_line_length' up vote 13 down vote favorite 1 I am trying to compile a code and I get the error undefined reference to boost::program_options::options_description::m_default_line_length I undefined reference use g++ in Ubuntu 12.04. Although I have done some C++ programming I am new to the Linux development environment (used only IDEs previously). So I did a basic search for this trouble, and found about some linking issues. I didn't quite understand them as I am a newbie. Reading some of those solutions confused me further. My boost library folder is in /usr/include. Some solutions says that it should be in /usr/lib. But I don't have undefined reference to any boost folder there. What do I need to change? c++ boost g++ ubuntu-12.04 share|improve this question edited Mar 16 at 13:05 Toby Speight 6,36381738 asked Aug 29 '12 at 13:31 Picowhat 71115 open a terminal and write updatedb && locate libboost_program_options. that will find the path where you installed the lib files for boost. –Default Aug 29 '12 at 13:45 locate libboost_program_options doesnt return anything but as I said boost folder is there in /usr/include and that also has a folder program options –Picowhat Aug 29 '12 at 14:10 did you run updatedb first? –Default Aug 29 '12 at 14:10 OOps sorry just saw that edit now.Ran that command and got this errorupdatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db –Picowhat Aug 29 '12 at 14:12 1 might need sudo.. you can also locate the file with the find command, but I find the locate command to be much easier to use. the updatedb command simply updates the database that locate uses –Default Aug 29 '12 at 14:13 | show 1 more comment 4 Answers 4 active oldest votes up vote 17 down vote If you have installed boost from repo just use -lboost_program_options that will suffice. If you installed boost libraries in some other library, you need to specify that directoty by -L/path/to/lib In CMake you may link against boost_program_options ! Question and answers on how to build Synfig. We encourage you to document your findings on the build instructions page of the website Post Reply Print view Search Advanced search 14 posts • Page 1 of 1 og_da_trog Posts: 18 Joined: Fri Apr 04, 2014 7:36 pm SOLVED error: Could not link against boost_program_options ! Quote Postby og_da_trog » Sun Apr 06, 2014 4:35 am Hello I am trying to build synfig from source.I cloned synfig from github.Then I followed the instructions on: http://wiki.synfig.org/wiki/Dev:Build_InstructionsI was just going through typing in the lines of code one by one. Then I got to where I had to type inCode: Select all./configurefor synfig-core (at this point I'd already typed './configure' in once for ETL, it worked fine then.)it gave me this:checking whether the Boost::Program_Options library is available... yeschecking for exit in -lboost_program_options... nochecking for exit in -lboost_program_options... (cached) noconfigure: error: Could not link against boost_program_options !I tried doing:Code: Select all./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnubut it still didnt workthankyou for your help c: Last edited by og_da_trog on Thu Apr 10, 2014 12:47 am, edited 1 time in total. Top d.j.a.y Site Admin Posts: 1352 Joined: Fri Apr 27, 2012 4:35 am Contact: Contact d.j.a.y Website Re: error: Could not link against boost_program_options ! Quote Postby d.j.a.y » Sun Apr 06, 2014 6:00 am first i think that you should follow those instructions in order to setup the build : viewtopic.php?f=13&t=972and also have a look to this thread also to well configure boostlibs: viewtopic.php?f=13&t=4886read to entire discussion development from both links....under what system are you trying to build ?Nota : Wiki development pages really needs some update ! If that solved, please edit initia