Re: [Gc] Issue with libatomic_ops.h on Windows XP 64-bit with VS 2005
ivmai at mail.ru
Wed Dec 16 23:27:42 PST 2009
"Emmanuel Stapf [ES]" <manus at eiffel.com> wrote:
> I was trying to compile libatomic_ops for Windows 64-bit using VS 2005 (directly
> from the libatomic_ops/src folder) and I was getting the following error:
> # error Cannot implement AO_compare_and_swap_full on this architecture.
> It turns out it was because `msftc/x86_64.h' was not included. I've replaced line
> 285 of atomic_ops.h to now read instead:
> # if defined(_AMD64_) || defined(_M_X64)
> I'm not sure if this is the right patch though.
Hmm... AFAIK, V2005 is VC++ 14.00, right? I'm examing VC v14.00.50727 and I can't find _M_X64 macro. But MSDN docs say it's defined. So, I fix it in libatomic_ops.h. Thanks.
More information about the Gc