Error while building project

  • I have downloaded QT 4.6 from QT site its size about 270 MB, than I installed it on my computer (windows system), it works very well with the simple programs such hello world(include only main file) but does not work with the programs that are complex relatively (include the main, cpp, and header file), and sends message like the following

    ......\Qt\2010.02.1\qt\mkspecs\win32-g++" -o debug\main.o main.cpp
    mingw32-make[1]: Leaving directory C:/Users/Smart/Documents/converterdailog' mingw32-make: Leaving directoryC:/Users/Smart/Documents/converterdailog'
    main.cpp:3:33: error: ByteConverterDialog.h: No such file or directory
    main.cpp: In function 'int qMain(int, char**)':
    main.cpp:7: error: 'ByteConverterDialog' was not declared in this scope
    main.cpp:7: error: expected ';' before 'bc'
    main.cpp:8: error: 'bc' was not declared in this scope
    mingw32-make[1]: *** [debug/main.o] Error 1
    mingw32-make: *** [debug] Error 2
    Exited with code 2.
    Error while building project converterdailog
    When executing build step 'Make'

  • can you show us the code (or part of it)?

    This line shows the first error. Maybe ByteConverterDialog.h does not exist at all.
    @main.cpp:3:33: error: ByteConverterDialog.h: No such file or directory@

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.