[OpenWalnut-Dev] boost program_options linker error

Mathias Goldau math at informatik.uni-leipzig.de
Mon Aug 31 21:10:37 CEST 2015


At least for Mac OS 10.10.5, I can report it works with boost 1.58.0 and clang 3.6.0 when OW_UI_SCRIPT is set to ON. I tested release branch as well as default branch.

best
Mathias

> Am 27.08.2015 um 11:33 schrieb Sebastian Eichelbaum <openwalnut at nemtics.com>:
> 
> Btw, I am using clang 3.5.2
> 
> On Thu, 27 Aug 2015, Sebastian Eichelbaum wrote:
> 
>> Hi list,
>> 
>> I recently updated my system and now use boost 1.58. Unfortunately, there is an issue when building the qt gui/scriptui. Both use boost::program_options. When linking, the linker complains about the missing reference "boost::program_options::arg".
>> 
>> The mighty internet provides two solutions:
>> 
>> 1) missing explicit linking to boost_program_options (-l)
>> 2) definition of "BOOST_PROGRAM_OPTIONS_DYN_LINK" something.
>> 
>> Both "solutions" did not work. Please be so kind to check this on your systems, especially when using boost 1.58. It is a critical issue. We cannot release OpenWalnut when it does not compile/link on this boost version.
>> 
>> You can trace down the issue to boost/program_options/config.hpp and boost/program_options/detail/value_semantic.hpp. Something is wrong there. BUT we cannot fix this in there. It is out of reach.
>> 
>> As a workaround for you if you need to get it work again (DO NOT commit), replace the program_options include in OpenWalnut.cpp with
>> 
>> namespace boost { namespace program_options { std::string arg; } }
>> #include <boost/program_options.hpp>
>> 
>> 
>> Cheers
>> 
>> Sebastian
>> 
>> -- 
>> Dr. rer. nat. Sebastian Eichelbaum
>> Nemtics Visualization - Software | Training | Consulting
>> http://www.nemtics.com
>> sebastian.eichelbaum at nemtics.com
>> +49 176 34541337
>> Gohliser Straße 20 - D-04105 Leipzig
>> _______________________________________________
>> OpenWalnut-Dev mailing list
>> OpenWalnut-Dev at lists.informatik.uni-leipzig.de
>> http://lists.informatik.uni-leipzig.de/mailman/listinfo/openwalnut-dev
>> 
>> Archive: http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/
> 
> -- 
> Dr. rer. nat. Sebastian Eichelbaum
> Nemtics Visualization - Software | Training | Consulting
> http://www.nemtics.com
> sebastian.eichelbaum at nemtics.com
> +49 176 34541337
> Gohliser Straße 20 - D-04105 Leipzig
> _______________________________________________
> OpenWalnut-Dev mailing list
> OpenWalnut-Dev at lists.informatik.uni-leipzig.de
> http://lists.informatik.uni-leipzig.de/mailman/listinfo/openwalnut-dev
> 
> Archive: http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/
> 



More information about the OpenWalnut-Dev mailing list