Velocity Reviews

Velocity Reviews (
-   Ruby (
-   -   Compiling ruby.h with precompiled headers (

Geo Tavros 09-11-2009 05:46 PM

Compiling ruby.h with precompiled headers
I'm trying to use Ruby in my C++ project. My project uses precompiled
headers, but when I try to include ruby.h header in it I get errors in
win32.h files that lie in RUBY_INCLUDE folder. Here is error:
...ruby\lib\ruby\1.8\i386-mswin32\win32\win32.h(172) : error C2061:
syntax error : identifier 'fd_set'
ruby\lib\ruby\1.8\i386-mswin32\win32\win32.h(188) : error C2146: syntax
error : missing ';' before identifier 'rb_w32_get_osfhandle'
ruby\lib\ruby\1.8\i386-mswin32\win32\win32.h(188) : fatal error C1004:
unexpected end of file found

Is there any way to avoid such error?
P.S. I'm using MSVC 6, Windows 7 OS
I've tried to create a project without precompiled header and it worked
Posted via

All times are GMT. The time now is 07:31 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.