# Compiling Ruby with MSVC

**URL:** <https://www.ruby-forum.com/t/compiling-ruby-with-msvc/157977>\
**Category:** Ruby\
**Created:** [January 17, 2009, 7:45am UTC](https://www.ruby-forum.com/t/compiling-ruby-with-msvc/157977 "2009-01-17T07:45:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Haritonov](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Sergey\_Haritonov](https://www.ruby-forum.com/u/Sergey_Haritonov)\
**Post date:** [January 17, 2009, 7:45am UTC](https://www.ruby-forum.com/t/compiling-ruby-with-msvc/157977/1 "2009-01-17T07:45:28Z")

</div>

Hi all.

Well, I managed to build Ruby latest snapshot with nmake. Now I need  
to build Ruby as Visual Studio solution, but I just stuck in error  
messages. I spent some time in lurking around and found this post:

[http://cowboyprogramming.com/2007/10/07/get-and-build-ruby-19-for-windows/](http://cowboyprogramming.com/2007/10/07/get-and-build-ruby-19-for-windows/)

But nothing changes. Errors still here, most of them is in Windows SDK  
files such as winbase.h, looks like some typedefs broken - compiler  
hasn’t figure out that struct members with types like DWORD really  
defined and spit “C requires that a struct or union has at least one  
member” and numerous syntax errors.

Any suggestions on subj?
