[QScintilla] Problems compiling QScintilla2 on win32 with mingw

Detlev Offenbach detlev at die-offenbachs.de
Thu May 17 10:31:46 BST 2007


On Samstag, 12. Mai 2007, Detlev Offenbach wrote:
> Hi,
>
> trying to compile latest QScintilla2 snapshot on win32 using the mingw
> compiler stops with a bunch of error messages like:
>
> g++ -c -O2 -O2 -w -frtti -fexceptions -DQSCINTILLA_MAKE_DLL -DQT
> -DSCI_LEXER -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB
> -DQT_CORE_LIB -I"C:/Qt/4.2.3/include/QtCore" -I"C:/Qt/4.2.3/include/QtCore"
> -I"C:/Qt/4.2.3/include/QtGui" -I"C:/Qt/4.2.3/include/QtGui"
> -I"C:/Qt/4.2.3/include" -I"." -I"Qsci" -I".. \include" -I"..\src"
> -I"C:/Qt/4.2.3/include/ActiveQt" -I"release" -I"." -I"c:
> \Qt\4.2.3\mkspecs\win32-g++" -o release\qsciscintilla.o qsciscintilla.cpp
> qsciscintilla.cpp: In member function 'bool
> QsciScintilla::isCallTipActive() const':
> qsciscintilla.cpp:245: error: passing 'const QsciScintilla' as 'this'
> argument of 'long int QsciScintillaBase::SendScintilla(unsigned int, long
> unsigned int, long int)' discards qualifiers
> qsciscintilla.cpp: In member function 'int
> QsciScintilla::adjustedCallTipPosition(int) const':
> qsciscintilla.cpp:380: error: passing 'const QsciScintilla' as 'this'
> argument of 'long int QsciScintillaBase::SendScintilla(unsigned int, int)'
> discards qualifiers
> qsciscintilla.cpp:380: error: passing 'const QsciScintilla' as 'this'
> argument of 'long int QsciScintillaBase::SendScintilla(unsigned int, long
> int)' discards qualifiers
>
> The compiler info is:
> g++ (GCC) 3.4.2 (mingw-special)
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> What am I doing wrong?
>
> Detlev

The problem is solved. 

It was caused by the presence of a previous QScintilla2 snapshot. The compiler 
picked up an include file (Qsci/qscintillabase.h) of that installation 
instead of the one in the 'Qsci' subdirectory of the sources. After deleting 
the include directory of the old installation compilation worked ok.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the QScintilla mailing list