[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wxruby-dev] Corrections for Windows build error
From: |
Roy Varghese |
Subject: |
Re: [Wxruby-dev] Corrections for Windows build error |
Date: |
Thu, 17 Jul 2003 22:19:56 -0700 |
----- Original Message -----
From: "Kevin Smith" <address@hidden>
To: <address@hidden>
Sent: Thursday, July 17, 2003 8:25 PM
Subject: Re: [Wxruby-dev] Corrections for Windows build error
> On Thu, 2003-07-17 at 08:40, Curt Hibbs wrote:
> > -----Original Message-----
> > From: Roy Varghese [mailto:address@hidden
>
> > button.cpp
> > wx.h(41) : warning C4005: 'StringValue' : macro redefinition
> > c:/apps/ruby/lib/ruby/1.7/i386-mswin32\ruby.h(216) : see
previous
> > definition of 'StringValue'
>
> This looks like a problem with Ruby 1.7 (I guess the rest of us are
> using 1.6 or 1.8). I believe we need to change this line in wx.h:
>
> #if RUBY_VERSION_CODE < 180
>
> But I'm not sure what the correct value is instead of 180. Does anyone
> know what version of Ruby first defined StringValue?
>
> Roy: Can you find out what RUBY_VERSION_CODE is set to on your system?
> We can at least use that as a value for now.
Is it in version.h? It so, it is 173.
$WXDIR\lib\ruby\1.7\i386-mswin32\version.h
=====
#define RUBY_VERSION "1.7.3"
#define RUBY_RELEASE_DATE "2002-11-17"
#define RUBY_VERSION_CODE 173
#define RUBY_RELEASE_CODE 20021117
and StringValue _is_ defined in ruby.h in the same directory as
#define StringValue(v) if (TYPE(v) != T_STRING) rb_string_value(&(v))
which seems to be different from what the wx.h definition.
Thx
Roy
- [Wxruby-dev] Corrections for Windows build error, Curt Hibbs, 2003/07/17
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/17
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/17
- Re: [Wxruby-dev] Corrections for Windows build error,
Roy Varghese <=
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Roy Varghese, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Gour, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error, Roy Varghese, 2003/07/19