Boost logo

Boost Users :

Subject: [Boost-users] [Interprocess] Trying to include unistd.h on Windows?
From: Derek Kivi (derek.kivi_at_[hidden])
Date: 2009-02-02 18:47:05


We are using the Interprocess library to make use of shared memory
within our code. We are experiencing the following problem when building
on Windows.

Some of our projects are trying to include unistd.h from workaround.hpp.
It looks like this happens if BOOST_WINDOWS is not defined.
 
Tracing back through the header files I pieced together that
BOOST_WINDOWS is not defined if BOOST_DISABLE_WIN32 is defined
(win32.hpp). And BOOST_DISABLE_WIN32 gets defined if _MSC_EXTENSIONS is
not defined (visualc.hpp).

>From the MSDN documentation, _MSC_EXTENSIONS is not defined if the
Visual C++ Language Extensions are turned off, which in fact they are
for these projects.

Has anyone else seen this and is there a workaround for getting Boost
Interprocess to work on Windows in cases where the Visual C++ Language
Extensions are turned off?

Thanks,
Derek

-- 
Derek Kivi
Senior Software Developer
QuIC Financial Technologies Inc. 
Office: +1 403 210 8282 
Mobile: +1 403 863 5204 
derek.kivi_at_[hidden]
Risk. Managed.
www.quic.com 
Confidentiality Notice: The information transmitted is intended only for the person(s) or entity(ies) to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the email and any related material from any computer.
ver. QuIC 0707

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