Hello all. I decided to see how things were progressing and have updated my Swig to 1.3.29 and my wxWindows to 2.6.3. I''ll try rebuilding everything as soon as I''m done compiling wx 2.6.3. Then I hope to have some time to read up on the new ruby stuff in Swig to see if we can close the last few holes. Roy
Hi all Tried the same on OS X 10.3, using 2.6.3 and swig 1.3.29 (previously using 1.3.25). Seems to run OK except 1) problems as previously reported with the ART_ constants src/RubyConstants.cpp:3512: error: `wxART_TOOLBAR_C'' undeclared (first use this function) The relevant SWIG-generated line is rb_define_const(mWxRubyConstants, "ART_TOOLBAR", SWIG_FromCharPtr(wxART_TOOLBAR_C)); Then some more errors: src/RubyConstants.cpp:3519: error: cannot convert `const wchar_t*'' to `const char*'' for argument `1'' to `VALUE SWIG_FromCharPtr(const char*)'' 2) I commented out the artprovider constants - it then fails on the final linking command with a slew of errors as below. Wonder if the GCItem refers to Garbage Collection and the new mechanisms for this in recent SWIG? Any help appreciated cheers alex ld: multiple definitions of symbol _ZN4Swig6GCItemD0Ev.eh obj/App.o definition of absolute _ZN4Swig6GCItemD0Ev.eh (value 0x0) obj/ArtProvider.o definition of absolute _ZN4Swig6GCItemD0Ev.eh (value 0x0) ld: multiple definitions of symbol _ZN4Swig6GCItemD1Ev.eh obj/App.o definition of absolute _ZN4Swig6GCItemD1Ev.eh (value 0x0) obj/ArtProvider.o definition of absolute _ZN4Swig6GCItemD1Ev.eh (value 0x0) ld: multiple definitions of symbol _ZN4Swig6GCItemD2Ev.eh obj/App.o definition of absolute _ZN4Swig6GCItemD2Ev.eh (value 0x0) obj/ArtProvider.o definition of absolute _ZN4Swig6GCItemD2Ev.eh (value 0x0) ld: multiple definitions of symbol _ZN4Swig6GCItemD4Ev.eh obj/App.o definition of absolute _ZN4Swig6GCItemD4Ev.eh (value 0x0) obj/ArtProvider.o definition of absolute _ZN4Swig6GCItemD4Ev.eh (value 0x0) ld: multiple definitions of symbol Swig::UnknownExceptionHandler::handler() obj/App.o definition of Swig::UnknownExceptionHandler::handler() in section (__TEXT,__text) obj/ArtProvider.o definition of Swig::UnknownExceptionHandler::handler() in section (__TEXT,__text) ld: multiple definitions of symbol Swig::GCItem::~GCItem() obj/App.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) obj/ArtProvider.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) ld: multiple definitions of symbol Swig::GCItem::~GCItem() obj/App.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) obj/ArtProvider.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) ld: multiple definitions of symbol Swig::GCItem::~GCItem() obj/App.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) obj/ArtProvider.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) ld: multiple definitions of symbol __ZN4Swig6GCItemD4Ev obj/App.o definition of __ZN4Swig6GCItemD4Ev in section (__TEXT,__text) obj/ArtProvider.o definition of __ZN4Swig6GCItemD4Ev in section (__TEXT,__text) obj/Bitmap.o definition of absolute _ZN4Swig6GCItemD0Ev.eh (value 0x0) obj/Bitmap.o definition of absolute _ZN4Swig6GCItemD1Ev.eh (value 0x0) obj/Bitmap.o definition of absolute _ZN4Swig6GCItemD2Ev.eh (value 0x0) obj/Bitmap.o definition of absolute _ZN4Swig6GCItemD4Ev.eh (value 0x0) obj/Bitmap.o definition of Swig::UnknownExceptionHandler::handler() in section (__TEXT,__text) obj/Bitmap.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) obj/Bitmap.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) obj/Bitmap.o definition of Swig::GCItem::~GCItem() in section (__TEXT,__text) obj/Bitmap.o definition of __ZN4Swig6GCItemD4Ev in section (__TEXT,__text) Roy Sutton wrote:> Hello all. I decided to see how things were progressing and have > updated my Swig to 1.3.29 and my wxWindows to 2.6.3. I''ll try > rebuilding everything as soon as I''m done compiling wx 2.6.3. Then I > hope to have some time to read up on the new ruby stuff in Swig to see > if we can close the last few holes. > > Roy > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >
On 3/26/06, Alex Fenton <alex at pressure.to> wrote: Hi all> > Tried the same on OS X 10.3, using 2.6.3 and swig 1.3.29 (previously > using 1.3.25). Seems to run OK exceptI''ve tried to build wxruby with swig 1.3.28 and the free microsoft compiler toolkit and have got similar errors. Both the ART_constants and the duplicate definitions of GCItem and UnknownException. Using swig-1.3.24 seems to work a bit better but the free toolkit is missing a few libraries (msvcprtd and msvcrt if my memory is correct) so I haven''t been able to produce a complete build with these either. Has anyone else managed to build wxruby using the free compiler? The first few lines of the linker output (when swigged with 1.3.28) looks like: ArtProvider.obj : error LNK2005: "private: static void __cdecl Swig::UnknownExce ptionHandler::handler(void)" (?handler at UnknownExceptionHandler@Swig@@CAXXZ) alre ady defined in App.obj ArtProvider.obj : error LNK2005: "public: virtual __thiscall Swig::GCItem::~GCIt em(void)" (??1GCItem at Swig@@UAE at XZ) already defined in App.obj Bitmap.obj : error LNK2005: "private: static void __cdecl Swig::UnknownException Handler::handler(void)" (?handler at UnknownExceptionHandler@Swig @@CAXXZ) already d efined in App.obj Bitmap.obj : error LNK2005: "public: virtual __thiscall Swig::GCItem::~GCItem(vo id)" (??1GCItem at Swig@@UAE at XZ) already defined in App.obj BitmapButton.obj : error LNK2005: "private: static void __cdecl Swig::UnknownExc eptionHandler::handler(void)" (?handler at UnknownExceptionHandler@Swig@@CAXXZ) alr eady defined in App.obj BitmapButton.obj : error LNK2005: "public: virtual __thiscall Swig::GCItem::~GCI tem(void)" (??1GCItem at Swig@@UAE at XZ) already defined in App.obj Bogus.obj : error LNK2005: "private: static void __cdecl Swig::UnknownExceptionH andler::handler(void)" (?handler@ UnknownExceptionHandler at Swig@@CAXXZ) already de fined in App.obj /Albin Holmgren -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20060326/316f536a/attachment.htm
I have sent off a couple messages to the Swig group for some help. Roy Albin Holmgren wrote:> > > On 3/26/06, *Alex Fenton* <alex at pressure.to <mailto:alex at pressure.to>> > wrote: > Hi all > > > Tried the same on OS X 10.3, using 2.6.3 and swig 1.3.29 (previously > using 1.3.25). Seems to run OK except > > > > I''ve tried to build wxruby with swig 1.3.28 and the free microsoft > compiler toolkit and have got similar errors. > Both the ART_constants and the duplicate definitions of GCItem and > UnknownException. > > Using swig-1.3.24 seems to work a bit better but the free toolkit is > missing a few libraries (msvcprtd and msvcrt if my memory is correct) > so I haven''t been able to produce a complete build with these either. > Has anyone else managed to build wxruby using > the free compiler? > > The first few lines of the linker output (when swigged with 1.3.28) > looks like: > > ArtProvider.obj : error LNK2005: "private: static void __cdecl > Swig::UnknownExce > ptionHandler::handler(void)" > (?handler at UnknownExceptionHandler@Swig@@CAXXZ) alre > ady defined in App.obj > ArtProvider.obj : error LNK2005: "public: virtual __thiscall > Swig::GCItem::~GCIt > em(void)" (??1GCItem at Swig@@UAE at XZ) already defined in App.obj > Bitmap.obj : error LNK2005: "private: static void __cdecl > Swig::UnknownException > Handler::handler(void)" (?handler at UnknownExceptionHandler@Swig @@CAXXZ) > already d > efined in App.obj > Bitmap.obj : error LNK2005: "public: virtual __thiscall > Swig::GCItem::~GCItem(vo > id)" (??1GCItem at Swig@@UAE at XZ) already defined in App.obj > BitmapButton.obj : error LNK2005: "private: static void __cdecl > Swig::UnknownExc > eptionHandler::handler(void)" > (?handler at UnknownExceptionHandler@Swig@@CAXXZ) alr > eady defined in App.obj > BitmapButton.obj : error LNK2005: "public: virtual __thiscall > Swig::GCItem::~GCI > tem(void)" (??1GCItem at Swig@@UAE at XZ) already defined in App.obj > Bogus.obj : error LNK2005: "private: static void __cdecl > Swig::UnknownExceptionH > andler::handler(void)" (?handler@ UnknownExceptionHandler at Swig@@CAXXZ) > already de > fined in App.obj > > /Albin Holmgren > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users