Compile error of installing QScintilla-gpl-2.7.1 on Linux
-
I am installing QScintilla-gpl-2.7.1 on Linux 2.6.32.
I got the compile error even though I defined EXT_LEXER_DECL __stdcall.
#if PLAT_WIN
#define EXT_LEXER_DECL __stdcall
#elif PLAT_QT
#include <qglobal.h>
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
#define EXT_LEXER_DECL __stdcall
#else
#define EXT_LEXER_DECL __stdcall
#endif
#else
#define EXT_LEXER_DECL
#endif#ifdef SCI_NAMESPACE
namespace Scintilla {
#endiftypedef void*(EXT_LEXER_DECL *GetLexerFunction)(unsigned int Index); // 32
typedef int (EXT_LEXER_DECL *GetLexerCountFn)(); // 33
typedef void (EXT_LEXER_DECL *GetLexerNameFn)(unsigned int Index, char *name, int buflength); // 34
typedef LexerFactoryFunction(EXT_LEXER_DECL *GetLexerFactoryFunction)(unsigned int Index); // 35
error:In file included from /home/user/myID/qscintilla2/QScintilla-gpl- 2.7.1/src/ExternalLexer.cpp:24:
/home/user/myID//qscintilla2/QScintilla-gpl-2.7.1/src/ExternalLexer.h:32: error: expected)' before '*' token /home/user/myID//qscintilla2/QScintilla-gpl-2.7.1/src/ExternalLexer.h:32: error: expected initializer before '*' token /home/user/myID//qscintilla2/QScintilla-gpl-2.7.1/src/ExternalLexer.h:33: error: expected
)' before '' token
/home/user/myID//qscintilla2/QScintilla-gpl-2.7.1/src/ExternalLexer.h:34: error: expected)' before '*' token /home/user/myID//qscintilla2/QScintilla-gpl-2.7.1/src/ExternalLexer.h:35: error: expected
)' before '' token
/home/user/myID//qscintilla2/QScintilla-gpl-2.7.1/src/ExternalLexer.h:40: error: 'GetLexerFactoryFunction' does not name a type
/home/user/myID//qscintilla2/QScintilla-gpl-2.7.1/src/ExternalLexer.h:51: error: 'GetLexerFactoryFunction' has not been declared
Any help will be appreciated.Thanks !