Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2007-04-03 16:12:08


Patches item #1693879, was opened at 2007-04-03 23:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=307586&aid=1693879&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Farid (farid_zaripov)
Assigned to: Nobody/Anonymous (nobody)
Summary: [iostreams] workaround for the boost + stdcxx on MSVC 7.1

Initial Comment:
I have been working on the Apache C++ Standard Library project (STDCXX):
http://incubator.apache.org/stdcxx/

I've trying to compile the boost library with stdcxx.

The details can be found here:
http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200704.mbox/%
3c7BDB2168BEAEF14C98F1901FD2DE64386573EB_at_[hidden]%3e

Boost version: 1.33.1
STDCXX version: 4.2

I've got the error in boost\iostreams\device\mapped_file.hpp:

D:\_Libs\boost_1_33_1\boost\iostreams\device\mapped_file.hpp(67) : error C2065: '__rw_openmode' : undeclared identifier
D:\_Libs\boost_1_33_1\boost\iostreams\device\mapped_file.hpp(67) : error C2064: term does not evaluate to a function taking 0 arguments
D:\_Libs\boost_1_33_1\boost\iostreams\device\mapped_file.hpp(72) : error C2064: term does not evaluate to a function taking 0 arguments

    CALL "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\VCVARS32.BAT" >nul
    "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\cl" /Zm800 -nologo /EHsc -c -D_RWSTDDEBUG /Z7 /Od /Ob0 /EHsc /GR /MTd /Op /wd4675 /Zc:forScope -I"bin\boost\libs\iostreams\build" -I"D:\_Libs\boost_1_33_1" -I"D:\_Projects\stdcxx_working\include" -I"D:\_Projects\stdcxx_working\include\ansi" -I"D:\_Projects\stdcxx_working\build\msvc-7.1\15s\include" -I"D:\_Libs\boost_1_33_1" -Fo"bin\boost\libs\iostreams\build\libboost_iostreams.lib\vc-7_1-stdcxx\debug\runtime-link-static\threading-multi\mapped_file.obj" -Tp"D:\_Libs\boost_1_33_1\libs\iostreams\build\..\src\mapped_file.cpp"

This error issued because of the following bug of the MSVC 7.1:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=267488

The proposed patch is attached.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=307586&aid=1693879&group_id=7586

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk