Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2004-09-14 04:58:11


> In my program, I used regex library.
> When I build the program to the release version, everything is ok.
> But when I build the debug version, some link error occurs:
>
> ---------------------------------------------------------------
> error LNK2001: unresolved external symbol "void * __cdecl
> boost::re_detail::get_mem_block(void)"
> (?get_mem_block_at_re_detail_at_boost@@YAPAXXZ)
> error LNK2001: unresolved external symbol "void __cdecl
> boost::re_detail::put_mem_block(void *)"
> (?put_mem_block_at_re_detail_at_boost@@YAXPAX_at_Z)
> ---------------------------------------------------------------

Those symbols are only defined (and only used) when
BOOST_REGEX_NON_RECURSIVE is defined, so I'm assuming that you defined that
symbol for your application's debug build, but didn't do so when building
the library.

John.

> the tools I use:
> VC6 + sp5
> boost_1_31_0
>
> the regex build process:
> nmake -fvc6.mak
> nmake -fvc6.mak install
>
> Why the link error occurs? How can I fix it?
>
> --
>
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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