SoloCodigo
Programación General => C/C++ => Mensaje iniciado por: AnioN en Domingo 8 de Abril de 2007, 23:42
-
Hola, no entiendo muy bien que hace "C compiler: cc -lpthread pthread1.c", cuando se usa el parametro -l
-
rtfm. :P
-l library
Search the library named library when linking. (The second alternative with the library as separate argument is only for POSIX compliance and is not recommended.)
It makes a difference where in the command you write option; te linker searches and process libraries and object files in the oreder they are specified....
Esta como en la linea 5683 del manual de GCC (man gcc).
:hola:
-
claro, pero no siempre se usa. En este caso porque estoy haciendo una aplicacion multitreads. Cuando tengo que especificar la libreria que se tiene que usar?
-
Yo siempre lo he visto asi... cuando se una una libreria siempre hay que decirle que la busque (ejm. gtk, X11...)
Aunque realmente no me preocupo por eso.