Boost C++ Libraries: Ticket #11905: Exception "character conversion failed" when omitting argument https://svn.boost.org/trac10/ticket/11905 <p> Hello, </p> <p> The minimal example I attached simply assigns the value of the optional parameter -i to an int. When the parameter is given (./a.out -i 42), the program exits normally. But if I omit the parameter (./a.out), then the exception "character conversion failed" is raised. It doesn't matter whether the option is "required" or not, or whether a default value is given. </p> <p> Configuration for which I found the bug: CentOS: 7.2 gcc: 4.8.5 boost: both 1.60.0 and 1.54.0 </p> <p> Configuration for which the bug does not occur: Linux Mint 17.2 gcc 4.8.4 boost 1.54.0 </p> <p> Regards, Thibaut Lepage </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11905 Trac 1.4.3 Thibaut Lepage <dourak@…> Tue, 12 Jan 2016 14:11:38 GMT attachment set https://svn.boost.org/trac10/ticket/11905 https://svn.boost.org/trac10/ticket/11905 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">minimal_example.cpp</span> </li> </ul> <p> Minimal example </p> Ticket Kristian <klukander@…> Tue, 27 Dec 2016 08:43:49 GMT <link>https://svn.boost.org/trac10/ticket/11905#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11905#comment:1</guid> <description> <p> At least on my system, this had to do with the linker searching for Boost libraries with another version (1.58), while I was compiling against 1.60. This was on Ubuntu 16.04 LTS. Fixing the linker paths got rid of the error. </p> </description> <category>Ticket</category> </item> </channel> </rss>