Compile problems

Ralf Habacker Ralf.Habacker at
Thu Jul 17 09:47:52 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?
See the notes in the gcc infopage, whihc is independed of the used os: 
     Search the library named LIBRARY when linking.  (The second
     alternative with the library as a separate argument is only for
     POSIX compliance and is not recommended.)

     It makes a difference where in the command you write this option;
     the linker searches and processes libraries and object files in
     the order they are specified.  Thus, `foo.o -lz bar.o' searches
     library `z' after file `foo.o' but before `bar.o'.  If `bar.o'
     refers to functions in `z', those functions may not be loaded.

$ info gcc 

and enter the node "Link options" for further hints. 


More information about the kde-cygwin mailing list