I've fixed the problem, here's my solution in case anyone else needs it:
The problem didn't have to do with the Platform SDK in the end.
The configuration that I'm using is MSVC6 SP3 on Windows 2000.
The fix was to add :
flags msvc-stlport DEFINES : _NTOS_=1 ;
to the "special flags for STLport 4.0" block in
tools\build\msvc-stlport-tools.jam (line 117, for example).
I have a question for jam experts: How can I set this define (_NTOS_=1)
from the command line?
Regards,
David Resnick
MobileSpear Inc.
-----Original Message-----
From: David Abrahams [mailto:yg-boost-users@m.gmane.org]
Sent: Friday, August 30, 2002 19:38
To: boost-users@yahoogroups.com
Subject: [Boost-Users] Re: msvc-stlport build problems
"David Resnick" wrote in message
news:DDE1CEBCDCEE614EA25D40FCE8EDD6BD0C48EE@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@boost-consulting.com * http://www.boost-consulting.com
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://rd.yahoo.com/M=233351.2287382.3722243.2225243/D=egroupweb/S=1705
006788:HM/A=1212975/R=0/*http://www.gotomypc.com/u/tr/yh/grp/300_mapG/g2
2lp?Target=mm/g22lp.tmpl>
Info: http://www.boost.org
Wiki:
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl
Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms/ .
[Non-text portions of this message have been removed]