Advertisement
Guest User

Untitled

a guest
May 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. #include <QApplication>
  2. #include <QPushButton>
  3.  
  4. int
  5. main (int argc, char *argv[])
  6. {
  7. QApplication app (argc, argv);
  8.  
  9. QPushButton hello ("hello world!");
  10.  
  11. hello.show ();
  12. return app.exec();
  13. }
  14.  
  15. output:
  16. [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] > qmake -project
  17. QFileInfo::absolutePath: Constructed with empty filename
  18. [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] > qmake
  19. [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] > make
  20. 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
  21. g++ -Wl,-O1 -Wl,-rpath,/usr/lib -o hello helloworld.o -L/usr/lib -lQtGui -L/usr/lib -L/usr/X11R6/lib -lQtCore -lpthread
  22.  
  23. [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] > run-standalone.sh ./hello
  24. /usr/bin/run-standalone.sh: line 11: 4229 Floating point exception(core dumped) "$@"
  25. [sbox-FREMANTLE_X86: /scratchbox/users/mm4/home/user/Qt/Qt/prac-code/window-prog/hello] >
  26.  
  27. error: /usr/bin/run-standalone.sh: line 11: 4229 Floating point exception(core dumped) "$@"
  28.  
  29. If i tried only this much code
  30.  
  31. int
  32. main () {}
  33.  
  34. Then same happens as above.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement