RE: 0.4/2.5.1 MacOS build issues
Xenomorph <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <1082443196.3781.3.camel@dellkiste> |
Am Di, den 20.04.2004 schrieb Michael S. Muegel um 8:26: > 1) Compiling wx-c I get a few warnings: > > g++ -fPIC `/usr/local/packages/wx-widgets-cvs/bin/wx-config --cxxflags` -D > "WXMAKINGDLL" -MD -o obj/bitmap.o -c bitmap.cxx^M > bitmap.cxx: In function `bool wxBitmap_LoadFile(wxBitmap*, const char*, > int)':^M > bitmap.cxx:91: warning: invalid conversion from `int' to `wxBitmapType'^M > bitmap.cxx:91: warning: initializing argument 2 of `virtual bool ^M > wxBitmap::LoadFile(const wxString&, wxBitmapType)'^M Replace int with wxBitmapType in bitmap.cxx > g++ -fPIC `/usr/local/packages/wx-widgets-cvs/bin/wx-config --cxxflags` -D > "WXMAKINGDLL" -MD -o obj/icon.o -c icon.cxx^M > icon.cxx: In function `bool wxIcon_LoadFile(wxIcon*, const char*, int)':^M > icon.cxx:36: warning: invalid conversion from `int' to `wxBitmapType'^M > icon.cxx:36: warning: initializing argument 2 of `virtual bool ^M > wxIcon::LoadFile(const wxString&, wxBitmapType)'^M Same here in icon.cxx > menuitem.cxx: In function `wxMenuItem* wxMenuItem_ctor(wxMenu*, int, char*, > ^M > char*, int, wxMenu*)':^M > menuitem.cxx:20: warning: invalid conversion from `int' to `wxItemKind'^M > menuitem.cxx:20: warning: initializing argument 5 of `^M > wxMenuItem::wxMenuItem(wxMenu*, int, const wxString&, const wxString&, ^M > wxItemKind, wxMenu*)'^M And again, change it to wxItemKind Those are all enums, so it shouldn't be a problem. > 2) I had to add a few #ifndef __WXMAC__ blocks in places. These are trivial > mods and I'll ask someone about CVS access. Ask Bryan, he will give you cvs access... Alexander Olk ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click