wxruby-dev
[Top][All Lists]
Advanced

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

Re: [Wxruby-dev] MinGW/MSYS build environment - error


From: Gour
Subject: Re: [Wxruby-dev] MinGW/MSYS build environment - error
Date: Wed, 9 Jul 2003 12:09:04 +0200
User-agent: Mutt/1.4i

Kevin Smith (address@hidden) wrote:

> Ok. It sounds like we need a fourth section. We already have sections
> for linux, powerpc-darwin, and windows native. This stuff would go in
> windows-mingw. Can you have your extconf.rb print out RUBY_PLATFORM so
> we know exactly what this new section should test for?

i386-mingw32, but probably mingw32 would be OK.

> It looks like you don't have the very latest code, but I found the
> problem. GetHandle returns different types on different platforms. I
> modified wxpp.rb to generate code that should work for you, and have
> checked it in.

I fetched it today in the morning since I saw that you did some changes, but it
looks it was still the old code.

Since I had some problems with compiler yesterday, today I fetched the latest 
code
from CVS, compiled latest Ruby 1.8.0pre3 from scratch and I have following 
results:

Here is the diff for compiling with MinGW/MSYS:

------------- cut-here -----------------------------------
23a24,35
> elsif /mingw32/ =~ RUBY_PLATFORM
>     $CFLAGS += " `wx-config --cxxflags`"
>     $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script "
>     $WXDIR=ENV['WXWIN']
>     $WXVERSION = '241'
>     $WXSRC="#$WXDIR/src/msw"
>     $WXINC="#$WXDIR/include"
>     $INCTEMP="#$WXDIR/lib/mswdll"
>     $WXLIB="#$WXDIR/lib/wxmsw#$WXVERSION.lib"
>     $CFLAGS += " -I#$WXINC -I#$INCTEMP #$WINFLAGS #$EXTRADLLFLAGS -DSTRICT 
> -DWIN32 -D__W
IN32__ -D_WINDOWS -DWINVER=0x0400 -D__WIN95__ -D__WXMSW__ -DWXUSINGDLL=1 
-D__WINDOWS__ -D_
_WXMSW__  "
>     $libs += " #$WXLIB"
>     $objs.push("wx.res")
31c43
<     $WXVERSION = '240'
---
>     $WXVERSION = '241'
--------------- cut-here -------------------------------------------

I put version 241 since I compiled latest wx.

The make fails at:

<snip>

ruby wxpp.rb menuitem.t
g++ -g -O2  `wx-config --cxxflags` -IC:/wx/include -IC:/wx/lib/mswdll   
-DSTRICT -DWIN32 -D__WIN32__ -D_WINDOWS -DWINVER=0x0400 -D__WIN95__ -D__WXMSW__ 
-DWXUSINGDLL=1 -D__WINDOWS__ -D__WXMSW__    -I. 
-IC:/MINGW/lib/ruby/1.8/i386-mingw32 -IC:/MINGW/lib/ruby/1.8/i386-mingw32 -I.   
-c menuitem.cpp
menuitem.cpp: In static member function `static VALUE WxMenuItem::GetName(int, 
   VALUE*, long unsigned int)':
menuitem.cpp:241: request for member `GetName' is ambiguous
C:/wx/include/wx/ownerdrw.h:91: candidates are: const wxString& 
   wxOwnerDrawn::GetName() const
C:/wx/include/wx/menuitem.h:109:                 const wxString& 
   wxMenuItemBase::GetName() const
make: *** [menuitem.o] Error 1
rm grid.cpp menuitem.cpp togglebutton.cpp


Sincerely,
Gour

-- 
Gour
address@hidden
Registered Linux User #278493





reply via email to

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