Em Sexta-feira, 26 de Novembro de 2010, às 09:38:52, Pertti Kellomäki 
escreveu:
>      /usr/bin/gcc -Wall -m32 -lX11 -lXtst -lXi 
> CMakeFiles/fala_pixelchanged.dir/main.c.o  -o fala_pixelchanged
> 
> The reason for the linker complaints is that the X libraries precede 
> main.c.o in the command line. At the point where the linker sees the 
> libraries, there are no references to symbols in them, so the linker 
> just discards the libraries.

That's a bug in CMake then.

This is an established practice that the libraries must be listed in the 
reverse order of dependency (usually -lc is last). This is required by 
linkers, since they may throw away the symbol table from a library when 
they're done with it.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to