Compiling ruby.h with precompiled headers

Discussion in 'Ruby' started by Geo Tavros, Sep 11, 2009.

  1. Geo Tavros

    Geo Tavros Guest

    Hi,
    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
    fine.
    --
    Posted via http://www.ruby-forum.com/.
     
    Geo Tavros, Sep 11, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. geek04
    Replies:
    1
    Views:
    466
    John Harrison
    Feb 28, 2004
  2. Asfand Yar Qazi

    pimpl or precompiled headers?

    Asfand Yar Qazi, Apr 29, 2004, in forum: C++
    Replies:
    6
    Views:
    517
    Siemel Naran
    Apr 30, 2004
  3. Replies:
    2
    Views:
    494
  4. dont bother
    Replies:
    0
    Views:
    866
    dont bother
    Mar 3, 2004
  5. Phil
    Replies:
    4
    Views:
    732
    Gabriel Genellina
    Jan 17, 2010
Loading...

Share This Page