Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QApplication>
- #include <QPushButton>
- int
- main (int argc, char *argv[])
- {
- QApplication app (argc, argv);
- QPushButton hello ("hello world!");
- hello.show ();
- return app.exec();
- }
- output:
- [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] > qmake -project
- QFileInfo::absolutePath: Constructed with empty filename
- [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] > qmake
- [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] > make
- g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include -I. -I. -o helloworld.o helloworld.cpp
- g++ -Wl,-O1 -Wl,-rpath,/usr/lib -o hello helloworld.o -L/usr/lib -lQtGui -L/usr/lib -L/usr/X11R6/lib -lQtCore -lpthread
- [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] > run-standalone.sh ./hello
- /usr/bin/run-standalone.sh: line 11: 4229 Floating point exception(core dumped) "$@"
- [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] >
- error: /usr/bin/run-standalone.sh: line 11: 4229 Floating point exception(core dumped) "$@"
- If i tried only this much code
- int
- main () {}
- Then same happens as above.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement