Re: [Boost-users] dynamic link error: boost::program_options::arg not found
Hello Sebastian and thank you for the follow up,
I must precise that I have 2 builds of my projects:
one linking to the multi threaded static runtime (/MT) and one linking
to the multithreaded dynamic runtine (/MD).
I defined BOOST_ALL_NO_LIB=1 to disable autolinking,
and i am linking manually to libboost_filesystem-vc90-mt-s-1_36.lib
libboost_program_options-vc90-mt-s-1_36.lib and libboost_system-vc90-mt-s-1_36.lib
for the /MT variant, and to boost_filesystem-vc90-mt-1_36.lib, boost_program_options-vc90-mt-1_36.lib and
boost_system-vc90-mt-1_36.lib for the /MD variant.
For _both_ variants, I get stuck with following unresolved externals:
__declspec(dllimport) public: void __thiscall boost::program_options::detail::cmdline::set_additional_parser(...)
__declspec(dllimport) class boost::system::error_category const & __cdecl boost::system::get_generic_category(void)
__declspec(dllimport) class boost::system::error_code boost::filesystem::detail::throws
What is more suprising, is that for the dynamic version, the set_additional_parser export _does_ appear when I
dumpbin /exports ./boost_program_options-vc90-mt-1_36.lib | grep set_additional_parser
but the two other symbols do not appear in boost_system-vc90-mt-s-1_36.lib.
Any idea what I am getting wrong ? Beginning to feel lost.
Cheers,
Florent
------------------------------
Message: 2
Date: Thu, 18 Sep 2008 08:15:01 -0400
From: "Sebastian Hauer"
Hello Florent,
On Fri, Sep 19, 2008 at 3:46 AM, Vial, Florent
for the /MT variant, and to boost_filesystem-vc90-mt-1_36.lib, boost_program_options-vc90-mt-1_36.lib and boost_system-vc90-mt-1_36.lib for the /MD variant.
This looks correct and I honestly can't see why you would still have unresolved symbols while linking unless perhaps are you doing a debug mode build? In which case you should use the boost_*-vc90-mt-gd-1_36.lib import libraries. Regards, Sebastian
participants (2)
-
Sebastian Hauer
-
Vial, Florent