gcc

Tasos Sotiropoulos tasos at aeolos.meng.auth.gr
Thu Jun 26 01:29:14 EEST 1997


On Wed, 25 Jun 1997, Harris Kosmidhs wrote:

> hello,
> 
> exo to e3hs problhma.
> 
> 8elo na kano compile ena programma pou xrhsimopoiei xforms.
> 
> Kano:
> gcc -L/usr/X11R6/lib -lX11 -lforms -lm -o XX main.c -Wall
> kai petuxaine.
> An 3anakano gcc me -static epipleon leei:
> 
> /usr/i486-linux/bin/ld: cannot open -lX11: No such file or directory
> 
> Ti skata einai auto? To /etc/ld.so.conf einai:
> /usr/local/lib
> /usr/X11R6/lib
> /usr/X11/lib
> /usr/i486-linuxaout/lib
> /usr/openwin/lib
> /tmp/StarOffice-3.1/linux-x86/lib
> /usr/i486-sysv4/lib
> /usr/X11R6/include/X11
> /lib
> 
> to idio munhma mou bgazei kai an kano compile me:
> gcc -lX11 -lforms -lm -o XX main.c -Wall
> 
> Thanks
> 
> 
> PS: To zhthma dhladh einai na kano to programma compiled os statically
> linked me tis xforms..

Dokimase na kaneis link ws e3hs:
gcc -o XX main.c -Wall /usr/lib/libforms.a -lm
	( egw ekei thn exw ^^^^^^^^^^ )
h telos pantws opou einai h static lib...se mena panta douleuei :)

--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argeas.argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte  e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list