[CMake] Problem linking boost program_options with Visual Studio 2008

Mateusz Łoskot mateusz at loskot.net
Tue Dec 13 08:01:54 EST 2011


On 13 December 2011 12:57, Mario Pezzoni <pezzoni.mario at gmail.com> wrote:
> Hi all,
>
> i have a project in c++ that needs program_options library from boost, i use
> FindBoost to set include dirs and linking stuff.
> Compiling and linking works flawlessly under linux. With the visual studio
> project compiling go well but linking fails with this error message:
>
> 1>pro_cli.obj : error LNK2001: unresolved external symbol "public: static
> unsigned int const
> boost::program_options::options_description::m_default_line_length"
> (?m_default_line_length at options_description@program_options at boost@@2IB)

If you feed big G with this part of error message...first link in the results

http://lists.boost.org/boost-users/2009/11/54015.php

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org


More information about the CMake mailing list