Important: Please read the Qt Code of Conduct -

Error: [main.o] Error 1 On Mac

  • Hi all

    For some reason I am getting this error recently.
    I created the simples hello world console application:

    .pro File

    Project created by QtCreator 2014-04-10T18:51:22


    QT += core

    QT -= gui

    CONFIG += console
    CONFIG -= app_bundle

    TEMPLATE = app

    SOURCES += main.cpp

    #include <QCoreApplication>
    #include <QtCore>
    int main(int argc, char *argv[])
    QCoreApplication a(argc, argv);
    return a.exec();


    I assume there is something wrong in my setting.
    All other previously written works just fine but not able to write any new one. it just happened today after work.


  • Personnaly, when errors like that occurs, I delete all my .o and my .pro.user. When re-building, new files are auto generated, and it had always solved the problem for me. It's a possible solution, but I don't have explications ^^"

  • I noticed it happens when I add

Log in to reply