Article View: es.comp.os.linux.programacion
Article #12011Compilar aplicaciones QT
From: zx128k
Date: Fri, 07 Sep 2001 09:37
Date: Fri, 07 Sep 2001 09:37
36 lines
1519 bytes
1519 bytes
#include <kapp.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
KApplication a( argc, argv );
QPushButton hello( "Hello world!" );
hello.resize( 100, 30 );
a.setTopWidget( &hello );
connect(&hello, SIGNAL( clicked() ), &a, SLOT( quit() ));
hello.show();
return a.exec();
}
Este es un programa de ejemplo que baje de una faq de la pagina de KDE,
es un programa tontisimo, pero no se con que librerias enlzarlo para
compilarlo.
Ya no lo recuerdo.
ivan@darkstar:~/borra$ gcc 1.c -o u
1.c:1: qapplication.h: No such file or directory
1.c:2: qpushbutton.h: No such file or directory
Lo hice a si y no es correcto, con que libreria lo enlazo?.
Salu2.
Technical Details
Message-ID:
<9ngbt6$f9e$1@diana.bcn.ttd.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit X-Google-Thread: f86c8,4f0da3789aaec2a8,start X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2001-09-09 11:26:54 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mail From: zx128k <noones@noones.com> Newsgroups: es.comp.os.linux.programacion Subject: Compilar aplicaciones QT Date: Fri, 7 Sep 2001 11:37:09 +0200 Organization: noones@noones.com Lines: 37 Message-ID: <9ngbt6$f9e$1@diana.bcn.ttd.net> Reply-To: noones@noones.com NNTP-Posting-Host: 213-4-230-172.uc.nombres.ttd.es Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.4