Important: Please read the Qt Code of Conduct -

[SOLVED] Make error: **** missing operator for first qt program

  • Hi, I'm trying to compile my first program. Either from the book (C++ programming with Qt4) or from this tutorial:

    But I'm always getting the same error when I'm trying to run make.


    make -f Makefile.Debug
    make [1]: Entering directory C:/qtbookexamples/chap01/hello' Makefile.Debug:59: *** missing separator. Stop. make [1]: Leaving directoryC:/qtbookexamples/chap01/hello'
    make: *** [debug] Error 2

    This is the the Makefile.Debug:59 line:

    Around it:


    .SUFFIXES: .c .cpp .cc .cxx

    57.$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
    62.$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
    63. $<

    The other program also had an error at line 60: <<

    Can anybody help me resolve the problem, so I can compile my first qt program?

  • I solved my own problematic by using the command prompt (MinGW) from the start menu/all program/QT/desktop folder.

  • Moderators

    Glad you found the problem! Be sure and edit your initial post to add [Solved] to the title. Thanks!

Log in to reply