Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
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
  #1 (permalink)  
Old 25-Feb-2008, 12:33
narcis_agh
Guest
 
Posts: n/a
Default

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 ???
  #2 (permalink)  
Old 10-Apr-2008, 04:21
helloc++
Guest
 
Posts: n/a
Default

Quote:
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 ???
[/b]

Why don't you try the qt example in KDevelop..?
  #3 (permalink)  
Old 10-Apr-2008, 12:09
hooper
Guest
 
Posts: n/a
Default

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();
}
...like this...

Code:
hooper@box:~> c++ -I$QTDIR/include -L$QTDIR/lib -lqt-mt -o helloqt helloqt.cpp
Hooper.
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2