Boost logo

Boost Users :

From: Jean Francois Poirier (jeff_at_[hidden])
Date: 2004-11-23 17:21:20


        Hello everyone;

        I have been wrestling with linking to boost::regex lib for some time now, and have looked
        everywhere to try and avoid posting a dumb question, but I still am getting no further.

        I am using MSVC 6 SP5, built boost with jam, with the following parameters:

        "-sTOOLS=msvc-stlport" "-sBUILD=debug <stlport-iostream>off <stlport-version>4.5.3 <runtime-link>dynamic"
        "-sSTLPORT_PATH={path}"

        Upon linking with the auto-link lib file, I MSVC complains as follows:

PSRecord.obj : error LNK2001: unresolved external symbol "void __cdecl boost::re_detail::raise_regex_exception(class _STL::basic_string<char,struct std::char_traits<char>,class _STL::allocator<char> > const &)" (?raise_regex_exception_at_re_detail_at_boost@@YAXABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@_STL@@@_STL@@@Z)

        [ other unresolved external messages snipped ]

        dumping libboost_regex-vc6-mt-gdpn-1_32.lib generated by jam, I find this:
        ?raise_regex_exception_at_re_detail_at_boost@@YAXABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z

        which is the closest to what VC wants (I am attempting to link
        to an application using the Multithreaded Debug DLL runtime).

        any ideas what I am missing?

        cheers,

        jeff poirier
        Software Designer / Servers Group,
        VertigoXMedia



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