Boost logo

Boost Users :

From: Juan Casanueva (juan_casanueva_at_[hidden])
Date: 2004-03-13 07:49:07


Hi there....
I have been playing with those settings in regex\user.hpp, but I always get
the same unresolved symbols

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

does anyone have any idea of what is wrong?
thanks
Juan

>Date: Fri, 12 Mar 2004 10:20:47 -0800
>From: "Jia Pu" <JiaPu_at_[hidden]>
>Subject: RE: [Boost-users] regex with msvc-stlport
>To: <boost-users_at_[hidden]>
>Message-ID: <LV-SVRSKJ0XgixKVVgx000006e5_at_[hidden]>
>Content-Type: text/plain; charset="us-ascii"
>
>I have seen the similar problem, when I built it using intel-win32.
>
>I would suggest you to check regex\user.hpp. There are a couple of macros
>need to be set for win32 dll. I am not sure what is the proper setting.
>Just
>play with it.
>
>// define this if the runtime library is a dll, and you
>// want BOOST_REGEX_DYN_LINK to set up dll exports/imports
>// with __declspec(dllexport)/__declspec(dllimport.)
> #define BOOST_REGEX_HAS_DLL_RUNTIME
>
>// define this if you want to dynamically link to regex,
>// if the runtime library is also a dll (Probably Win32 specific,
>// and has no effect unless BOOST_REGEX_HAS_DLL_RUNTIME is set):
> #define BOOST_REGEX_DYN_LINK
>
>// define this if you don't want the lib to automatically
>// select its link libraries:
> #define BOOST_REGEX_NO_LIB
>
>Hope this will help.
>
>-----Original Message-----
>From: boost-users-bounces_at_[hidden]
>[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Juan Casanueva
>Sent: Friday, March 12, 2004 7:13 AM
>To: boost-users_at_[hidden]
>Subject: [Boost-users] regex with msvc-stlport
>
>Hi,
>
>I am trying to build de regex boost library with msvc and stlport4.6.1,
>with
>no success!!!
>help!!!!
>
>I use the following to compile (release version):
>
>cd regex
>cd build
>..\..\..\bjam -sTOOLS=msvc-stlport "-sSTLPORT_PATH=C:\Program
>Files\Microsoft Visual Studio" "-sSTLPORT_4.6.1_PATH=C:\Program
>Files\Microsoft Visual Studio\STLport-4.6.1" "-sSTLPORT_VERSION=4.6.1"
>"-sBUILD=release <stlport-iostream>on <stlport-cstd-namespace>global"
>
>and I get the following output:
>
>...found 713 targets...
>...updating 40 targets...
>MkDir1
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>MkDir1
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global
>MkDir1
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\c_regex_traits.obj
>c_regex_traits.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\c_regex_traits_common.obj
>c_regex_traits_common.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\cpp_regex_traits.obj
>cpp_regex_traits.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\cregex.obj
>cregex.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\fileiter.obj
>fileiter.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\posix_api.obj
>posix_api.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\regex.obj
>regex.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\regex_debug.obj
>regex_debug.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\regex_synch.obj
>regex_synch.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\w32_regex_traits.obj
>w32_regex_traits.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\wide_posix_api.obj
>wide_posix_api.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\instances.obj
>instances.cpp
>C:\Program Files\Microsoft Visual
>Studio\STLport-4.6.1\stlport\stl/_algobase.h(64) : warning C4700: local
>variable '__tmp' used without having been initialized
>vc-C++
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\winstances.obj
>winstances.cpp
>C:\Program Files\Microsoft Visual
>Studio\STLport-4.6.1\stlport\stl/_algobase.h(64) : warning C4700: local
>variable '__tmp' used without having been initialized vc-Archive
>..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release\
>stlport-cstd-namespace-global\stlport-iostream-on\libboost_regex-vc6-mt-p-1_
>31.lib
>Microsoft (R) Library Manager Version 6.00.8168 Copyright (C) Microsoft
>Corp
>1992-1998. All rights reserved.
>
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\c_regex_traits.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\c_regex_traits_common.obj
>"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\cpp_regex_traits.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\cregex.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\fileiter.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\posix_api.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\regex.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\regex_debug.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\regex_synch.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\w32_regex_traits.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\wide_posix_api.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\instances.obj"
>"..\..\..\bin\boost\libs\regex\build\libboost_regex.lib\msvc-stlport\release
>\stlport-cstd-namespace-global\stlport-iostream-on\winstances.obj"
>FileClone D:\juan\open scene
>graph\boost\boost_1_31_0\stage\lib\libboost_regex-vc6-mt-p-1_31.lib
> 1 file(s) copied.
>MkDir1
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release
>MkDir1
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global
>MkDir1
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\c_regex_traits.obj
>c_regex_traits.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\c_regex_traits_common.obj
>c_regex_traits_common.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\cpp_regex_traits.obj
>cpp_regex_traits.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\cregex.obj
>cregex.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\fileiter.obj
>fileiter.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\posix_api.obj
>posix_api.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\regex.obj
>regex.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\regex_debug.obj
>regex_debug.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\regex_synch.obj
>regex_synch.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\w32_regex_traits.obj
>w32_regex_traits.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\wide_posix_api.obj
>wide_posix_api.cpp
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\instances.obj
>instances.cpp
>C:\Program Files\Microsoft Visual
>Studio\STLport-4.6.1\stlport\stl/_algobase.h(64) : warning C4700: local
>variable '__tmp' used without having been initialized
>vc-C++
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-cstd-namespace-global\stlport-iostream-on\winstances.obj
>winstances.cpp
>C:\Program Files\Microsoft Visual
>Studio\STLport-4.6.1\stlport\stl/_algobase.h(64) : warning C4700: local
>variable '__tmp' used without having been initialized vc-Link
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-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\stl
>port-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\stl
>port-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\stl
>port-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\stl
>port-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\relea
>se\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\re
>lease\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.1\lib"
>/LIBPATH:"C:\PROGRA~1\MICROS~2\VC98\lib"
>@"..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\s
>tlport-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.C
>MD"
>
>...failed vc-Link
>..\..\..\bin\boost\libs\regex\build\boost_regex.dll\msvc-stlport\release\stl
>port-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\stl
>port-cstd-namespace-global\stlport-iostream-on\boost_regex-vc6-mt-p-1_31.lib
>...
>...skipped <@boost!libs!regex!build!stage!lib>boost_regex-vc6-mt-p-1_31.dll
>for lack of
><@boost!libs!regex!build\boost_regex.dll\msvc-stlport\release\stlport-cstd-n
>amespace-global\stlport-iostream-on>boost_regex-vc6-mt-p-1_31.dll...
>...skipped <@boost!libs!regex!build!stage!lib>boost_regex-vc6-mt-p-1_31.lib
>for lack of
><@boost!libs!regex!build\boost_regex.dll\msvc-stlport\release\stlport-cstd-n
>amespace-global\stlport-iostream-on>boost_regex-vc6-mt-p-1_31.lib...
>...failed updating 2 targets...
>...skipped 2 targets...
>...updated 36 targets...
>
>
>
>Was anyone managed to get it to work?
>thanks
>Juan
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail


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