Hi Klaas, did some investigation on this stuff. After trying the newest cvs without any success i downloaded wx 2.8.7. In this version, c_str() is defined different and compilation of your wxArt2D gets further :).
Browsed the wx svn and found this comment from Vaclav: Revision 44865 - (view) (download) (as text) (annotate) - [select for diffs] Modified Sat Mar 17 10:26:10 2007 UTC (12 months, 1 week ago) by VS File length: 79770 byte(s) Diff to previous 44637 , to selected 46554 first phase of transition to unified Unicode build: 1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*) 2. added template type-safe wrappers for vararg functions 3. added wxUniChar class representing single Unicode character 4. changed wxString::operator[] and wxString::iterator to return wxUniChar It seems that "implicitly convertible to wxChar*" isn't quite right, and when the svn head will become official, this problem will arise again. Got a further compile problem, which i'll report in a further mail. Thx and Regards, Thomas Am Freitag, 28. März 2008 schrieb Klaas Holwerda: > I don't know what the fix is at this moment. > This certainly due to wxString changes, i will try to find it. > > The class wxCStrData is new to me. > > Klaas > > Thomas Zehbe wrote: > > Hi, > > > > now having the canimage.* files i could start the compile. Regrettably it > > broke with this message: > > > > /misc/wxArt2D/modules/general/src/gen.cpp: In member function ‘void > > a2dPathList::IncC()’: > > /misc/wxArt2D/modules/general/src/gen.cpp:3162: error: invalid cast from > > type ‘wxCStrData’ to type ‘wxChar*’ > > /misc/wxArt2D/modules/general/src/gen.cpp: In member function ‘virtual > > void a2dPropObject::DoLoad(wxObject*, a2dIOHandlerXmlSerIn&, > > a2dXmlSer_flag)’: /misc/wxArt2D/modules/general/src/gen.cpp:4246: > > warning: cannot pass objects of non-POD type ‘class wxCStrData’ through > > ‘...’; call will abort at runtime make[2]: *** > > [modules/general/src/CMakeFiles/general.dir/gen.o] Fehler 1 make[1]: *** > > [modules/general/src/CMakeFiles/general.dir/all] Fehler 2 > > > > I compiled it using an older CVS version of wxwidgets. And i remember > > that i already had problems with these "wxString.c_str()" changes. > > > > Any hint what to do? > > > > Thanks, > > THomas -- Thomas Zehbe Dipl.-Ing. Allied-Visions GmbH Bäckerstraße 18 31683 Obernkirchen Tel. +49 5724 951822 Fax. +49 5724 951813 E-mail: [EMAIL PROTECTED] Geschäftsführer: Dipl.-Ing. Martin Seger Amtsgericht Stadthagen, HRB 2124 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev