[Win32utils-devel] [Fwd: [ruby-core:20176] Unable to build from source on Vista, VC++ 9]

Heesob Park phasis at gmail.com
Sun Nov 30 22:03:38 EST 2008


Hi,

2008/12/1 Daniel Berger <djberg96 at gmail.com>:
> Whoops, forgot to cc this.
>
> Regards,
>
> Dan
>
> Hi,
>
> Windows Vista (Home Premium)
> MS VC++ 9 (cl 15)
> Ruby 1.8.6-p114 and Ruby 1.8.6-p237
>
> eval.c
> ...
> eval.c(9839) : fatal error C1189: #error :  unsupported platform
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2
> '
> Stop.
>
> Where the relevant code is:
>
> #if !defined SAVE_WIN32_EXCEPTION_LIST && !defined _WIN32_WCE
> # error unsupported platform
> #endif
> #endif
>

I guess your vista is 64bit version.

Modify #9797 of eval.c
#   ifdef _M_IX86
to
#   if defined _M_IX86 || defined _M_X64
will work for you.

Regards,

Park Heesob


More information about the win32utils-devel mailing list