I was trying to build MySQL server from the source 5.6.16 on a 32 bit Windows box. The compiler I am using is Visual Studio 2005. I followed the link,
http://dev.mysql.com/doc/internals/en/cmake.html
to build the same. However, after configuring with cmake, when I try to build the mysql.sln I am getting certain errors. The error is as below,
9>ut0byte.cc
9>ut0bh.cc
9>usr0sess.cc
9>f:\practicemodules\project\utility\mysql-5.6.16\mysql-5.6.16\storage\innobase\include\buf0buf.ic(1010) : error C3861: '_InterlockedExchangeAdd': identifier not found
9>f:\practicemodules\project\utility\mysql-5.6.16\mysql-5.6.16\storage\innobase\include\buf0buf.ic(1040) : error C3861: '_InterlockedExchangeAdd': identifier not found
9>f:\practicemodules\project\utility\mysql-5.6.16\mysql-5.6.16\storage\innobase\include\buf0buf.ic(1059) : error C3861: '_InterlockedExchangeAdd': identifier not found
I am not sure why am I getting the error for this API. I googled a little bit and tried including Windows.h to buf0buf.cc source file, but it doesn't seem to correct the problem.
I tried building the solution for both debug and release and none of them seem to work.
Kindly suggest, what could be the resolution.
Thank you,
AD