[config/interprocess] visual C++ express og /Za option

I got this error when I switch on the /Za option: d:\boost\trunk\boost\interprocess\detail\workaround.hpp(20) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory The only thing I did was to add /Za to my Jamroot. The compiler switch is supposed to turn of microsoft extensions. Does anyone have any clues to what is going on? Thanks -Thorsten

Thorsten Ottosen wrote:
I got this error when I switch on the /Za option:
d:\boost\trunk\boost\interprocess\detail\workaround.hpp(20) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
The only thing I did was to add /Za to my Jamroot. The compiler switch is supposed to turn of microsoft extensions. Does anyone have any clues to what is going on?
I suspect this is because interprocess has to be able to either: #include <windows.h> or #include <unistd.h> and in /Za mode it can do neither? HTH, John.

Thorsten Ottosen wrote:
I got this error when I switch on the /Za option:
d:\boost\trunk\boost\interprocess\detail\workaround.hpp(20) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
The only thing I did was to add /Za to my Jamroot. The compiler switch is supposed to turn of microsoft extensions. Does anyone have any clues to what is going on?
It seems that this disables Boost's BOOST_WINDOWS detection macro, so the code supposes the platform is UNIX. I don't know how many problems will appear with /Za but try to define BOOST_WINDOWS to see if problems disappear.
Thanks
-Thorsten
Regards, Ion
participants (3)
-
Ion Gaztañaga
-
John Maddock
-
Thorsten Ottosen