Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: minimik on November 25, 2008, 09:02:43 pm

Title: error when compiling C::B from svn
Post by: minimik on November 25, 2008, 09:02:43 pm
Hi all,
since a very long period I get the following message while a compilerun:

In function `Splash':
/home/mic/Tools/Programming/codeblocks/trunk/src/src/app.cpp:199: undefined reference to `cbLoadBitmap(wxString const&, wxBitmapType)'

Am I doing something wrong?

Thank you
Michael
Title: Re: error when compiling C::B from svn
Post by: stahta01 on November 25, 2008, 10:45:17 pm
Need more info
Operation system Name and Version
Compiler Version
wxWidgets version
SVN number

Tim S
Title: Re: error when compiling C::B from svn
Post by: minimik on November 26, 2008, 09:20:59 am

OpenSuse 10.3/11.0
gcc 4.2.1/4.3.1
wxWidgets 2.8.9.1
wxScintilla 1.69.2
Revision  <=5322.

It's very funny, I did a checkout this morning, Rev 5322 and now I get an other compiler error.



 g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../src/include/wxscintilla/include -I./src/scintilla/include -I./src/scintilla/src -DSCI_LEXER -DLINK_LEXERS -DGTK -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxscintilla.lo -MD -MP -MF .deps/wxscintilla.Tpo -c src/wxscintilla.cpp  -fPIC -DPIC -o .libs/wxscintilla.o
src/wxscintilla.cpp:2513: error: no 'int wxScintilla::GetCaretLineBackgroundAlpha()' member function declared in class 'wxScintilla'
src/wxscintilla.cpp:2656: error: prototype for 'void wxScintilla::StyleSetFont(int, const wxFont&)' does not match any in class 'wxScintilla'
/usr/include/wx-2.8/wx/wxscintilla.h:3216: error: candidate is: void wxScintilla::StyleSetFont(int, wxFont&)



when doing a 'make -i' I can see a second error:



 g++ -DHAVE_CONFIG_H -I. -I../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../src/include -I../../src/include/wxscintilla/include -I../../src/include/tinyxml -I../../src/include/scripting/include -I../../src/include/scripting/sqplus -I../../src/include/wxFlatNotebook/include -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT cbeditor.lo -MD -MP -MF .deps/cbeditor.Tpo -c cbeditor.cpp  -fPIC -DPIC -o .libs/cbeditor.o
cbeditor.cpp: In member function 'void cbEditorInternalData::HighlightOccurrences()':
cbeditor.cpp:309: error: 'wxSCI_INDIC_HIGHLIGHT' was not declared in this scope
make[3]: [cbeditor.lo] Error 1 (ignored)



When I do a make of the 8.02 tag, I get the folowing error at a
openSuse 11.0
gcc 4.3.1
wxWidgets 2.8.9.1
wxScintilla 1.69.2



g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../src/include/wxscintilla/include -I./src/scintilla/include -I./src/scintilla/src -DSCI_LEXER -DLINK_LEXERS -DGTK -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxscintilla.lo -MD -MP -MF .deps/wxscintilla.Tpo -c src/wxscintilla.cpp  -fPIC -DPIC -o .libs/wxscintilla.o
src/wxscintilla.cpp:1639: error: prototype for 'int wxScintilla::GetEndAtLastLine()' does not match any in class 'wxScintilla'
/usr/include/wx-2.8/wx/wxscintilla.h:2676: error: candidate is: bool wxScintilla::GetEndAtLastLine()



But I cant find a define which defines a bool to an int or vice versa.

Please can anybode give me a hint how to get C::B running, since I was very happy with my former PC where it ran at OpenSuse 10.2.

Many thanx
Michael



Title: Re: error when compiling C::B from svn
Post by: Jenna on November 26, 2008, 09:50:53 am
Do you use your own wxScintilla ?

It's not compatible with the C::B one.
We use a patched version, that's included in svn-sources.
Title: Re: error when compiling C::B from svn
Post by: minimik on November 26, 2008, 10:10:09 am
Hi,
I don't think I'm using anything especially.

What I did is as described in the BUILD document:
./bootstrap
./configure
make

after I did this, I realized the errors.

Thanx
Michael
Title: Re: error when compiling C::B from svn
Post by: Jenna on November 26, 2008, 10:31:31 am
/usr/include/wx-2.8/wx/wxscintilla.h:2676: error: candidate is: bool wxScintilla::GetEndAtLastLine()

As I wrote before (I should have seen this), you are mixing two (incompatioble) versions of wxScintilla.

Our .cpp and a system-wide (not patched) .h-file.

I don't use wxScintilla (except for C::B), so I can not look for a way to avoid this problem at the moment.

The easiest way would be to remove the other installation or to rename the wxscintilla.h in /usr/include/wx-2.8/wx/ (temporary).
Title: Re: error when compiling C::B from svn
Post by: minimik on November 26, 2008, 04:27:44 pm
Thanx a lot...

I've overseen this completely and on the other side I thougt this woul be ok to include that file.

But, every day I learn something new!

Michael