Boost logo

Boost Users :

Subject: [Boost-users] error when using boost with visual c++
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2009-02-28 15:49:24


Hi;
When using boost with visual c++ 2005, I'm getting the following two
error:
c:\program files\microsoft visual studio 8\vc\include\intrin.h(198) :
error C2373: '_InterlockedExchange' : redefinition; different type
modifiers
        c:\program files\boost\boost\detail\interlocked.hpp(60) : see
declaration of '_InterlockedExchange'
Has anyone got any ideas what is causing this? I'm including the
following files in the file that is indicating the error:
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/array.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/foreach.hpp>
#include <windows.h>
#include <psapi.h>
#include <ole2.h>
#include <exdisp.h>
#include <mshtml.h>
#include "O2ServerImpl.h"
#include "Globals.h"
//Crypto++ remove as necessary.
#include <default.h>
#include <filters.h>
#include <hex.h>
#include <md5.h>
#include <ripemd.h>
#include <rng.h>
#include <gzip.h>
#include <randpool.h>
#include <ida.h>
#include <base64.h>
#include <factory.h>
#include <whrlpool.h>
#include <tiger.h>
 
any help appreciated.
Sean.



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