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
TARGET = LIST
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
@main.cpp:
@
#include <QCoreApplication>
#include<QDebug>
#include <QtCore>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug()<<"HI";
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.Thanks
-
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
@
#include<QList>
@