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. C++ compiler on Mac
QtWS25 Last Chance

C++ compiler on Mac

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 626 Views
  • 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
    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sandy.martel23
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        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 ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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