Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Compiling ruby.h with precompiled headers

Thread Tools

Compiling ruby.h with precompiled headers

Geo Tavros
Posts: n/a
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(18 : error C2146: syntax
error : missing ';' before identifier 'rb_w32_get_osfhandle'
ruby\lib\ruby\1.8\i386-mswin32\win32\win32.h(18 : 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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with wsgiref.headers.Headers Phil Python 4 01-17-2010 04:47 PM
benefits of precompiled headers C++ 2 03-04-2005 01:34 PM
pimpl or precompiled headers? Asfand Yar Qazi C++ 6 04-30-2004 05:04 PM
Reading 'received' headers: Email Headers Parsing dont bother Python 0 03-03-2004 08:18 PM
vc++ error while compiling pro*c precompiled code geek04 C++ 1 02-28-2004 04:06 PM