Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Compile error of installing QScintilla-gpl-2.7.1 on Linux

    Installation and Deployment
    1
    1
    1099
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dtustudy68 last edited by

      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 {
      #endif

      typedef 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 !

      1 Reply Last reply Reply Quote 0
      • First post
        Last post