Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22260

Can't get a Qt Hello World to work

$
0
0

I've compiled Qt on OSX Lion using the instructions provided at this official guide. I've then tried compiling the following Hello World with gcc hello_world.cpp -o hello_world

#include <QApplication>int main(int argc, char **argv){    QApplication app (argc, argv);    return app.exec();}

I've got the following error:

hello_world.cpp:1:10: fatal error: 'QApplication' file not found#include <QApplication>         ^1 error generated.

Viewing all articles
Browse latest Browse all 22260


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>