|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I try to write a simple "Hello World" Qt(both version 3 and 4) program in konsole. When I run make command it says"/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: cannot find -lQtGui" anyone can help me ??? |
|
|||
|
Quote:
Why don't you try the qt example in KDevelop..? |
|
|||
|
What options are you compiling with? What kind of system are you running? I can compile the following code:
Code:
#include <qapplication.h>
#include <qlabel.h>
int main( int argc, char* argv[] )
{
****QApplication myapp( argc, argv );
****QLabel* mylabel = new QLabel( "Hello, world", 0 );
****mylabel->resize( 120, 30 );
****myapp.setMainWidget( mylabel );
****mylabel->show();
****return myapp.exec();
}
Code:
hooper@box:~> c++ -I$QTDIR/include -L$QTDIR/lib -lqt-mt -o helloqt helloqt.cpp |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|