LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2001, 07:27 PM   #1
engman
LQ Newbie
 
Registered: May 2001
Posts: 1

Rep: Reputation: 0

Have a problem when compiling a simple qt "hello- world" program.. I include qt2/qapplications.h and qt2/qpushbutton.h. The problem is that these two libs wants to include a lib called qfeatures.h wich is missing for me. I've tried to reinstall the qt-libs and severel other libs without any result. Where do I get this file(s) to make my simple hello-world program to get through the compiler??? I run Linuxkernel 2.4 and use gcc. This is the program:



#include <qt2/qapplication.h>

#include <qt2/qpushbutton.h>

int main(int argc, char* argv[]){

QApplication a(argc,argv);

QpushButton hello("Hej Andreas!!", 0);

hello.resize(100,30);

a.setManWidget(&hello);

hello.show();

return a.exec();

}



 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't compile C pgm in SUSE 9.1 gjo Programming 10 10-25-2004 11:00 AM
starting java pgm at services bgcynthia Red Hat 0 10-06-2004 12:00 AM
Any IT managers in here? Writing COBOL pgm to show @ interview superztnt Programming 0 07-05-2004 05:24 PM
Problems installing amsn (TK compiling problems) JNewton Linux - Software 0 05-24-2004 12:07 PM
fprintf is not working in rpc server pgm ratheesh Programming 1 01-08-2004 08:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration