Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error: [main.o] Error 1 On Mac
Forum Updated to NodeBB v4.3 + New Features

Error: [main.o] Error 1 On Mac

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SahamGhazavi
    wrote on last edited by
    #1

    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_bundle

    TEMPLATE = 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

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Nihilivin
      wrote on last edited by
      #2

      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 ^^"

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SahamGhazavi
        wrote on last edited by
        #3

        I noticed it happens when I add
        @
        #include<QList>
        @

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved