wxruby-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wxruby-dev] Corrections for Windows build error


From: Curt Hibbs
Subject: [Wxruby-dev] Corrections for Windows build error
Date: Thu, 17 Jul 2003 10:40:54 -0500

Thanks Roy for the changes to fix Windows builds. I'm going to forward this
back to the wxRuby list so that Kevin can incorporate your changes into the
cvs repo (I would do it, but I'm leaving on an airplane in a couple of
hours).

Thanks again,
Curt

-----Original Message-----
From: Roy Varghese [mailto:address@hidden
Sent: Thursday, July 17, 2003 10:24 AM
To: Curt Hibbs
Subject: Re: [Wxruby-dev] Windows build error


Hi Curt

Changes below were required in extconf.rb to fix the ^Ms, I dont know how
this affects unix, probably should work okay since 'mkmf.rb' does.
I manually generated the .cpp and .h files for button, window but am now
stuck
on this error
---
Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.


cl -DIMPORT -MD -DNT=1 -Zi -O2b2xg- -G6 -I/include -I/lib/mswdll   -DSTRICT
-DWIN32 -D__WIN32__ -D_WINDOWS -DWINVER=0x0400 /D__WIN95__ /D__WXMSW__
/DWXUSINGDLL=1
/D__WINDOWS__ -D__WXMSW__ -I. -Ic:/apps/ruby/lib/ruby/1.7/i386-mswin32 -Ic:/
apps/ruby/lib/ruby/1.7/i386-mswin32 -IC:/dev/common/wxruby/src -DHAVE_WINDOW
S_H -I. -I./.. -I./../missing -DLIBRUBY_SO=\"msvcrt-ruby17.dll\" -c -Tpbutto
n.cpp

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'
wx.h(42) : warning C4005: 'StringValuePtr' : macro redefinition
        c:/apps/ruby/lib/ruby/1.7/i386-mswin32\ruby.h(222) : see previous
definition of 'StringValuePtr'
wx.h(43) : warning C4005: 'SafeStringValue' : macro redefinition
        c:/apps/ruby/lib/ruby/1.7/i386-mswin32\ruby.h(221) : see previous
definition of 'SafeStringValue'
button.cpp(21) : error C2653: 'WxControl' : is not a class or namespace name
button.cpp(22) : error C2653: 'WxControl' : is not a class or namespace name
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Changes to extconf.rb
Index: extconf.rb
===================================================================
RCS file: /cvsroot/wxruby/wxruby/src/extconf.rb,v
retrieving revision 1.18
diff -r1.18 extconf.rb
37c37
<     $WXVERSION = '24'
---
>     $WXVERSION = '241'
52c52
< File.open("Makefile","a+") {|f|
---
> File.open("Makefile","ab+") {|f|
62c62
<     File.open("Makefile","a+") {|f|
---
>     File.open("Makefile","ab+") {|f|
70c70
< File.open("Makefile","a+") {|f|
---
> File.open("Makefile","ab+") {|f|
79c79
< File.open("Makefile","a+") {|f|
---
> File.open("Makefile","ab+") {|f|

Thx
Roy
----- Original Message -----
From: "Curt Hibbs" <address@hidden>
To: "Roy Varghese" <address@hidden>;
<address@hidden>
Sent: Thursday, July 17, 2003 1:50 AM
Subject: RE: [Wxruby-dev] Windows build error


> Roy Varghese wrote:
> >
> > I am new to Ruby and wxRuby. I am trying to build on Windows using
VC++6,
> > it stops with the following error.
> > -----
> > C:\dev\common\wxruby\src>nmake
> >
> > Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> > Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> >
> > NMAKE : fatal error U1073: don't know how to make 'button.obj'
> > Stop.
> > ----
> > The Makefile does have the ".t.cpp" rule:
> >
> > .t.cpp:
> >  ruby wxpp.rb $<
> >
> > .t.h:
> >  ruby wxpp.rb $<
> >
> > What could be the problem? I can execute "ruby wxpp.rb button.t" from
> > the command line and it does create the .cpp and .h files, but not using
> > nmake.
> > Also, these lines in the Makefile end with a ^M. The ones preceding the
> > ".t.cpp" rule dont. I guess its because 'mkmf.rb' creates the Makefile
in
> > binary mode, whereas extconf.rb appends to it in ASCII mode.
>
> Yes, I ran into this problem as well. You have already gone farther than
me
> in trying to figure it out. For now I was just going to generate them by
> hand as I wanted to get further along it testing out wxRuby under Windows.
> But now I'm leaving for two weeks and won't be able to do anything.
>
> If you figure it out in the meantime, great. Otherwise, I'll work on it
when
> I get back.
>
> Curt
>
>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]