On 6/8/2012 14:48, Andre Pinho wrote:
Hi. I'm using Windows XP 32bit and I have created a
simple test program that creates 5 threads using pthreads that
runs a loop inside each thread. But, after creating those threads
I get the following error:
64-bit NoBarrier-Store() not implemented on this platform.
What compiler and version are you using?
While I don't know the exact cause of your problem, I've experienced
similar problems in other projects before. In my case, it happened
because the headers for Microsoft Platform SDK that comes with
Visual Studio assume that you have Windows Vista (or even 7,
depending on your version) at runtime, and use functionality that is
not available in XP. One of these functionality areas (that XP and
Vista differ) are some atomic operations (Interlocked* Win32 API.)
To fix that problem, I had to make sure some basic macros were
defined to proper values before including any Windows headers, which
usually means passing them to your compiler command line. Two of
these macros are WINVER and _WIN32_WINNT, which you have to define
to 0x0501 to make Windows headers use only those features that are
available on Windows XP or later. Usually, only defining these two
(or even the second one) is enough.
By the way, I don't think this arises from use of Mongoose (but I'm
not sure.) It might be pthreads that internally uses Win32 API.
May the Source be with you.