Boost logo

Boost Users :

Subject: [Boost-users] dynamic link error: boost::program_options::arg not found
From: Sebastian Hauer (sebastian.hauer_at_[hidden])
Date: 2008-09-17 11:29:46


Hi,
I am trying to dynamically link one of my *libraries* to boost
program_options on windows with msvc-8.0 but linking fails due to a
missing symbol. Quickly googling for this problem revealed no
resolution to my problem, although it appears other people ran into
this issue before.

Did anyone resolve it or is everyone linking boost program_options
statically? I initially ran into this issue on boost 1_34_1 but have
since upgraded to 1_36 hoping it would have gotten fixed with no luck.

error LNK2001: unresolved external symbol "class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > boost::program_options::arg"
(?arg_at_program_options_at_boost@@3V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@A)

Here is the link command line:
link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /subsystem:console
/out:"foo.dll" /IMPLIB:"foo.lib"
/LIBPATH:"..\boost_1_36_0\lib.x86-nt-msvc8" @"foo.dll.rsp"

And foo.dll.rsp contains besides the name of my object files also
references to the following external import libraries:
"boost_date_time-vc80-mt-gd-1_36.lib"
"boost_filesystem-vc80-mt-gd-1_36.lib"
"boost_program_options-vc80-mt-gd-1_36.lib"
"boost_system-vc80-mt-gd-1_36.lib"

Thanks,
Sebastian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net