Re: [Boost-users] regex with msvc-stlport1
Hi John, I have installed stlport 4.6 and tryed to compile regex but I get the same error. vc-Link ..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.dll ..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.lib Creating library ..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.lib and object ..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.exp boost_regex-vc6-mt-p-1_31.exp : error LNK2001: unresolved external symbol "?re_custom_error_messages@?%C:\Program" (?re_custom_error_messages@?%C:\Program) boost_regex-vc6-mt-p-1_31.exp : error LNK2001: unresolved external symbol "?re_ten_w@?%C:\Program" (?re_ten_w@?%C:\Program) boost_regex-vc6-mt-p-1_31.exp : error LNK2001: unresolved external symbol "?re_zero_w@?%C:\Program" (?re_zero_w@?%C:\Program) ..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.dll : fatal error LNK1120: 3 unresolved externals "link" /nologo /INCREMENTAL:NO /DLL /subsystem:console /out:"..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.dll" /IMPLIB:"..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio\STLport-4.6\lib" /LIBPATH:"C:\PROGRA~1\MICROS~2\VC98\lib" @"..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.CMD" it creates the .lib fine, but then give some unresolved externals when creating the dll.. what are your setting in regex\user.hpp??? if anyone has any idea, I would apreciate it thanks Juan
Date: Sat, 13 Mar 2004 12:31:07 -0000 From: "John Maddock"
Subject: Re: [Boost-users] regex with msvc-stlport To: Message-ID: <022501c408f7$128de550$1a520252@fuji> Content-Type: text/plain; charset="iso-8859-1" I am trying to build de regex boost library with msvc and stlport4.6.1, with no success!!!
I regularly test regex with msvc+STLPort and it works for me with Boost.1.31.0 (OK, I use STLPort 4.6, but otherwise the same settings as you are using).
I use the following to compile (release version):
The static libs have built OK, but the dll build failed for some strange reason, I really don't understand that...
John.
_________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
I have installed stlport 4.6 and tryed to compile regex but I get the same error.
it creates the .lib fine, but then give some unresolved externals when creating the dll.. what are your setting in regex\user.hpp???
Nothing don't change it.
if anyone has any idea, I would apreciate it thanks
The only thing I notice is that the errors are only coming from the release dll build (and not the debug version), is that correct? If so it explains why I can't reproduce it, as I only have the standard edition of vc6 available to me (which doesn't create optimised builds). I also notice that the symbols that the linker is complaining about, probably don't need to be exported anyway, so can you go into both c_regex_traits.cpp and w32_regex_traits.cpp and remove the BOOST_REGEX_DECL specifier from the following identifiers: re_custom_error_messages re_ten_w re_zero_w and see if that fixes the issue? If it does be sure to let me know so that I can patch up the source, Thanks, John.
participants (2)
-
John Maddock
-
Juan Casanueva