Boost logo

Boost Users :

From: David Abrahams (yg-boost-users_at_[hidden])
Date: 2002-08-30 12:38:08


"David Resnick" <dresnick_at_[hidden]> wrote in message
news:DDE1CEBCDCEE614EA25D40FCE8EDD6BD0C48EE_at_msmail.mobilespear.com...
> Hi,
>
> I'm trying to build boost version 1.28.0, msvc-stlport build, using the
> following line:
>
> bjam -sTOOLS=msvc-stlport -sstlport-iostream=on -sSTLPORT_PATH=c:\etc

-sstlport-iostream=on sets a Jam variable called "stlport-iostream" to "on".
As a build feature, you need to set this up as a part of the BUILD variable:

    -sBUILD="<stlport-iostream>on"

However, that doesn't appear to be related to the warnings you're reporting.

> I have no problems building the msvc build.
>
> It seems to me that the problem has to do with the MS Platform SDK that
> I have installed.

Quite possibly.

> When compiling STLPort (version 4.5.3) I had similar warnings. 2 work
> arounds that I found there were either to remove the platform SDK from
> the include enviroment variable, or (when I found it) to define
> _STLP_NEW_PLATFORM_SDK in stl_user_config.h.
>
> I've tried variations of that with compiling Boost, but nothing makes a
> difference. I've included the error messages that I get for most files.
>
> ---------------------------- CUT HERE ----------------------------
> vc-C++
> libs\regex\build\bin\libboost_regex.lib\msvc-stlport\debug\runtime-link-
> dynamic\stlport-cstd-namespace-std\stlport-ios
> tream-off\stlport-version-4.5.3\c_regex_traits.obj
> c_regex_traits.cpp
> C:\PROGRA~1\MICROS~3\VC98\include\winbase.h(1011) : error C2733: second
> C linkage of overloaded function 'InterlockedIncremen
> t' not allowed
> C:\PROGRA~1\MICROS~3\VC98\include\winbase.h(1009) : see
> declaration of 'InterlockedIncrement'
> C:\PROGRA~1\MICROS~3\VC98\include\winbase.h(1018) : error C2733: second
> C linkage of overloaded function 'InterlockedDecremen
> t' not allowed
> C:\PROGRA~1\MICROS~3\VC98\include\winbase.h(1016) : see
> declaration of 'InterlockedDecrement'
> C:\PROGRA~1\MICROS~3\VC98\include\winbase.h(1026) : error C2733: second
> C linkage of overloaded function 'InterlockedExchange
> ' not allowed
> C:\PROGRA~1\MICROS~3\VC98\include\winbase.h(1023) : see
> declaration of 'InterlockedExchange'
>
>
> "cl" /Zm400 -nologo -GX -c -DBOOST_REGEX_NO_LIB=1
> -DBOOST_REGEX_STATIC_LINK=1 -D_STLP_NO_SGI_IOSTREAMS=1 -D_STLP_DO_IMP
> ORT_CSTD_FUNCTIONS=1 -D_STLP_DEBUG=1 -D_STLP_DEBUG_UNINITIALIZED=1
> -D_STLP_NEW_PLATFORM_SDK=1 /Z7 /Od /Ob0 /GX /GR /MDd -I
> "libs\regex\build" -I"C:\etc\boost_1_28_0"
> -I"c:\etc\STLport-4.5.3\stlport" -I"C:\PROGRA~1\MICROS~3\VC98\include"
> -Fo"libs
> \regex\build\bin\libboost_regex.lib\msvc-stlport\debug\runtime-link-dyna
> mic\stlport-cstd-namespace-std\stlport-iostream-off\s
> tlport-version-4.5.3\c_regex_traits.obj"
> -Tp"libs\regex\build\../src\c_regex_traits.cpp"
>
> ...failed vc-C++
> libs\regex\build\bin\libboost_regex.lib\msvc-stlport\debug\runtime-link-
> dynamic\stlport-cstd-namespace-std\s
> tlport-iostream-off\stlport-version-4.5.3\c_regex_traits.obj...
> ---------------------------- CUT HERE ----------------------------
>
> Thanks in advance,
>
> David Resnick
> MobileSpear Inc.

--
-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com

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