[Win32utils-devel] win32-api on Windows 7

Luis Lavena luislavena at gmail.com
Sat Jan 30 14:06:19 EST 2010


On Sat, Jan 30, 2010 at 4:10 PM, Daniel Berger <djberg96 at gmail.com> wrote:
>
> Forgive me if I'm being dumb:
>
> // gcc 3.4.5 on Win7
> #include <stdio.h>
>
> int main(){
>  printf("Size of void* : %i\n", sizeof(void*)); // 4
>  printf("Size of long: %i\n", sizeof(long)); // 4
>  return 0;
> }
>
> They both show 4 for me.
>
> Is there anything we can do to make win32-api work on 64 bit windows?
>
> There is check_sizeof in mkmf.rb, if that helps at all.
>

GCC 3.4.5 is 32bits application, even when running on 64bits OS.
(yeah, the joys of WOW64)

I think mkmf one will work for you, since will use the same compiler
used by Ruby in the same compilation mode, so will generate the
expected sizeof.

Cheers,
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry


More information about the win32utils-devel mailing list