wxMax compile error

BlitzMax Forums/Brucey's Modules/wxMax compile error

Brucey(Posted 2008) [#1]
Jesse wrote :

I managed to fix the problem I just change wxUSE_UNICODE from 0 to 1
in the file setup.h
#ifndef wxUSE_UNICODE
    #define wxUSE_UNICODE 1
#endif



but now I get this error:

C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp: In member f
unction `virtual void SurfaceImpl::DrawTextNoClip(PRectangle, Font&, int, const
char*, int, ColourAllocated, ColourAllocated)':
C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp:437: error:
'class Font' has no member named 'ascent'
C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp: In member f
unction `virtual void SurfaceImpl::DrawTextClipped(PRectangle, Font&, int, const
 char*, int, ColourAllocated, ColourAllocated)':
C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp:450: error:
'class Font' has no member named 'ascent'
C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp: In member f
unction `virtual void SurfaceImpl::DrawTextTransparent(PRectangle, Font&, int, c
onst char*, int, ColourAllocated)':
C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp:465: error:
'class Font' has no member named 'ascent'
C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp: In member f
unction `virtual int SurfaceImpl::Ascent(Font&)':
C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp:574: error:
'class Font' has no member named 'ascent'
C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.mod/src/PlatWX.cpp:575: error:
'class Font' has no member named 'ascent'
Build Error: failed to compile C:/Program Files/BlitzMax/mod/wx.mod/wxscintilla.
mod/src/PlatWX.cpp


any help appreciated.



It always surprises me how many different kinds of errors people have :-)

What version of BlitzMax are you on?
For the least work, you should have 1.28, which includes an updated BMK that lets the module use special compiler options. if you are on 1.26, you would need to get my modified BMK ( http://brucey.net/programming/blitz ).

Otherwise, you shouldn't be needing to set the Unicode flag in the headers. (probably :-p )