Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Linux Unicode wx2.6 CVS HEAD Doesn't Compile
me22:
Wee, Linux Unicode wx2.6 -- the toughest version yet :P
$ make -f Makefile.unix.wx2.6
[ A Bunch of Successful Compiles ]
Compiling sdk/wxscintilla/src/PlatWX.cpp...
sdk/wxscintilla/src/PlatWX.cpp: In constructor `Font::Font()':
sdk/wxscintilla/src/PlatWX.cpp:93: error: `ascent' undeclared (first use this function)
sdk/wxscintilla/src/PlatWX.cpp:93: error: (Each undeclared identifier is reported only once for each function it appears in.)
sdk/wxscintilla/src/PlatWX.cpp: In member function `virtual void SurfaceImpl::DrawTextNoClip(PRectangle, Font&, int, const char*, int, ColourAllocated, ColourAllocated)':
sdk/wxscintilla/src/PlatWX.cpp:337: error: 'class Font' has no member named 'ascent'
sdk/wxscintilla/src/PlatWX.cpp: In member function `virtual void SurfaceImpl::DrawTextClipped(PRectangle, Font&, int, const char*, int, ColourAllocated, ColourAllocated)':
sdk/wxscintilla/src/PlatWX.cpp:350: error: 'class Font' has no member named 'ascent'
sdk/wxscintilla/src/PlatWX.cpp: In member function `virtual void SurfaceImpl::DrawTextTransparent(PRectangle, Font&, int, const char*, int, ColourAllocated)':
sdk/wxscintilla/src/PlatWX.cpp:365: error: 'class Font' has no member named 'ascent'
sdk/wxscintilla/src/PlatWX.cpp: In member function `virtual int SurfaceImpl::Ascent(Font&)':
sdk/wxscintilla/src/PlatWX.cpp:474: error: 'class Font' has no member named 'ascent'
sdk/wxscintilla/src/PlatWX.cpp:475: error: 'class Font' has no member named 'ascent'
make: *** [.objs/2.6/sdk/wxscintilla/src/PlatWX.o] Error 1
grv575:
Not all the sources were added. The makefile was out of date. Try the updated one I just merged from the windows .cbp.
http://forums.codeblocks.org/index.php/topic,835.msg5885.html#msg5885
yop:
Isn't this fix in the CVS Head? I yesterday run into this problem (I was playing with the windows version of the code untill now) getting the same undefined variable ascent in linux using the 2.6 unix cbp. I made a fresh checkout to have the original source in case some of the changes i've made messed something up, built it succesfully but then when I open the 2.6 unix cbp I can't compile :(
I ll try the updated version submitted in the link you provide.
mandrav:
The build system now uses autotools (configure and friends). It's the only supported (and guaranteed) way to build C::B in linux.
yop:
And it works flawlessly, but the problem with the cbp has to be fixed IMHO as there are linux developers who would like to contribute. Anyway I' ll see the grv575 suggestion and hopefully it'll work :)
Navigation
[0] Message Index
[#] Next page
Go to full version