Error compiling project with QT

0

Hello, I'm a beginner in qt, I did a C ++ course with QT in 2013 but I was not able to take the apprenticeship forward and now I'm taking over. Now I'm trying to compile a simple project, I just create a new project in qt widget, it automatically creates a main screen and I did not change anything, just tried to run this program created by the IDE itself and the following error occurs:

Alerts generated by the compiler (contained in the image):

  

Warning: overriding recipe for target 'debug / main.o'

     

Warning: ignoring old recipe for target 'debug / main.o'

    
asked by anonymous 05.07.2016 / 01:32

1 answer

2

Edson, this image you've linked shows 2 warnings, warning you that you're overriding compilation targets.

In this case specifically you have defined the name of the main window of your project as "main", which is the name of exactly the file generated by Qt Creator to initialize the program in C ++ (main.cpp), therefore you project is started in the Qt pattern.

I recommend that you change the name of the main window to something other than "main", such as MainWindow (Qt Creator default hint).

I hope I have helped.

    
05.07.2016 / 06:28