[zeromq-dev] 0MQ and Windows X65 --- compiled and running using VS2010
john.apps at hp.com
Fri Apr 16 16:17:45 CEST 2010
I have compiled and linked the suggestion proposed by Martin (took the code from Git) and have encountered no errors thus far.
-- John.Apps at hp.com | +491718691813 | http://twitter.com/johnapps --
From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of Martin Sustrik
Sent: Thursday, April 15, 2010 7:37
To: 0MQ development list
Subject: Re: [zeromq-dev] 0MQ and Windows X65 --- compiled and running using VS2010
Apps, John wrote:
> Not too long ago, someone asked about compiling 0MQ on Windows X64. With the help of my colleague, Brett Cameron, I have a working version compiled using VS2010 and running on Windows 7 X64.
> Only one minor change was required in atomic_ptr.hpp:
> #if defined ZMQ_ATOMIC_PTR_WINDOWS
> // return (T*) InterlockedExchangePointer (&ptr, val_);
> return (T*) InterlockedExchangePointer ((PVOID *) &ptr, val_);
> The change is a quick solution and is not, in my mind, what really should be done. There are a number of preprocessor statements which equate X86 with X64, thus leading to the use of 32-bit pointers and data types. These should be changed to differentiate between the two machine types.
I've done a little research and afaics casting to void** is the best
solution. I've patched it in the trunk, however, not having x64 system I
cannot test it. Let me know whether it's OK now.
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
More information about the zeromq-dev