Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64771

QParser in qlalr exemple won't compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.4
    • 5.9.1
    • Build tools: Other
    • None
    • 0f1b8fd2dcd2db698095a54ca9beff7e27cf1ceb

    Description

      I get the following error when compilling qparser exemple from qlalr code source:

      http://code.qt.io/cgit/qt/qlalr.git/tree/examples/qparser

      error: ‘isatty’ was not declared in this scope

       

       

       

      calc_lex.cpp: In function ‘int yy_get_next_buffer()’: 
      calc_lex.cpp:1100:44: warning: comparison between signed and 
      unsigned integer expressions [-Wsign-compare] 
        if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFF 
                                                  ^ 
      calc_lex.cpp: In function ‘void calc_init_buffer(YY_BUFFER_ST
      ATE, FILE*)’: 
      calc_lex.cpp:1422:61: error: ‘isatty’ was not declared in thi
      s scope 
       yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; 
                                                        ^ 
      calc_lex.cpp: At global scope: 
      calc_lex.cpp:1176:17: warning: ‘void yyunput(int, char*)’ def
      ined but not used [-Wunused-function] 
           static void yyunput (int c, char * yy_bp ) 
                       ^ 
      Makefile:707 : la recette pour la cible « .obj/calc_lex.o » a
       échouée

       

       

      Attachments

        For Gerrit Dashboard: QTBUG-64771
        # Subject Branch Project Status CR V

        Activity

          People

            buddenha Oswald Buddenhagen
            sschutz sacha schutz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes