Berger, Daniel a ñÄrit :
> 
>>-----Original Message-----
>>From: Lionel Thiry [mailto:lthiryidontwantspam / skynetnospam.be] 
>>Sent: Monday, June 06, 2005 8:50 AM
>>To: ruby-talk ML
>>Subject: Re: help, I can't compile an extension on windows
>>
>>
>>ES a ñÄrit :
>>
>>>Le 5/6/2005, "Lionel Thiry" <lthiryidontwantspam / skynetnospam.be> a
>>>ñÄrit:
>>>
>>>
>>>>Daniel Berger a ñÄrit :
>>>>
>>>>
>>>>>Lionel Thiry wrote:
>>>>>
>>>>>
>>>>>>I launch it, I then launch make (the mingw version of 
>>
>>make, I don't 
>>
>>>>>>have M$ make. Someone know where I can freely get it?)
>>>>>
>>>>>
>>>>>http://www.rubygarden.org/ruby?WindowsCompiler
>>>>>
>>>>>If you follow these instructions, you should have nmake.
>>>>>
>>>>
>>>>I have it now, and it still don't work. There is something about a 
>>>>missing windows.h that I can't find anywhere. I can't find 
>>
>>excepted in 
>>
>>>>my MinGw include dir, but if I add it to the INCLUDE var, I get 
>>>>another bunch of errors (probably some kind of incompatibilities 
>>>>between cl compiler and mingw headers)
>>>
>>>
>>>You should not be mixing cl and MinGW...
>>
>>I haven't. This what I tried to explained: if I mix them, I 
>>get errors, so I don't.
>>
>>
>>>use whichever tool your
>>>version of Ruby was compiled with. You can get the MS tools 
>>
>>as a free 
>>
>>>(your soul does not count) download if you need them.
>>
>>I already have all the MS tools I should use: nmake, cl, 
>>link, and the headers and libs, and so on. But I got the 
>>error of windows.h missing, and there are no windows.h 
>>anywhere in MS include stuff.
> 
> 
> Then you must not have the platform SDK.  You should have a directory like 'C:\Program Files\Microsoft Platform SDK for Windows XP SP2'.  There should be an 'include' subdirectory there, and that's where your windows.h file should be.
> 

It perfectly works now, thanks a lot.

....

Oh well, no, I forget something. I had to double quote the value of
srcdir in the Makefile generated or cl messes with the spaces.

-- 
Lionel Thiry

Personal website: http://users.skynet.be/lthiry/