Compile problems

David Sharp david.m.sharp at btopenworld.com
Thu Jul 17 00:38:40 CEST 2003


Works great! Thanks for your help.

I don't understand why the "-lqt" must come after the file name now, 
when in Linux, you can put it before?

Dave

Ralf Habacker wrote:

>Hi
>
>
>  
>
>>>>dave at laptop ~
>>>>$ gcc -lqt -L /usr/local/lib/qt2/lib -I /usr/local/lib/qt2/include hello.cpp
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>QT is linked with g++-2, so you should use it.
>>>
>>>g++-2 -lqt -L /usr/local/lib/qt2/lib -I /usr/local/lib/qt2/include hello.cpp
>>>
>>>      
>>>
>
>libraries are only used, if there are requested symbols.
>
>try
>
>g++-2 -L /usr/local/lib/qt2/lib -I /usr/local/lib/qt2/include hello.cpp -lqt
>
>Ralf
>
>_______________________________________________
>kde-cygwin mailing list
>kde-cygwin at mail.kde.org
>http://mail.kde.org/mailman/listinfo/kde-cygwin
>
>  
>




More information about the kde-cygwin mailing list