Congratulations to our 2022 Qt Champions!

C++ compiler on Mac

  • Hi
    I just installed Qt 4.8 ( the version my employer is currently at)
    I am not able even to run this:

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

    The .pro file loos like:

    QT += core
    QT -= gui
    CONFIG += c++11
    TARGET = HellowWorld
    CONFIG += console
    CONFIG -= app_bundle
    TEMPLATE = app
    SOURCES += main.cpp

    Any idea? Something is wrong with my settings I guess

  • Yes, something is wrong with your setting.
    Difficult to say more if you're not more specific than 'not able even to run...'

  • Lifetime Qt Champion


    To add to @sandy-martel23:

    • What error do you get ?
    • What version of OS X are you running ?
    • What version of Xcode ?
    • What exact version of Qt ?

Log in to reply