Re: [gtk-list] Re: how do i compile?



me again,

veni, vidi , faili (or something like that)

I have used  configure without prefix (i.e. ./configure )
so I first tryed :
	g++ -I/include -L/lib -o $1 $1'.cc' -lgtkmm -lgtk -lgdk
	-lglib -lXext -lX11 -lm -lsocket -lnsl

But I get 
	ld: cannot open -lXext: No such file or directory

I have look in the output of the make command and I found
	/bin/sh ../libtool --mode=link c++ -g -O2 ../src/libgtkmm.la  -L/usr/lib
	-lgtk -lgdk -lglib -lXext -lX11 -L/usr/X11R6/lib -lm  -o hello  hello.o

that  works (provided I am in the good directory) and outputs :

c++ -g -O2 -Wl,-rpath -Wl,/usr/local/lib ../src/.libs/libgtkmm.so -L/usr/lib -lgtk
 -lgdk -lglib -lXext -lX11 -L/usr/X11R6/lib -lm -o .libs/hello hello.o

creating hello

I don't get it

Sorry again,

-------------------------------------------------------
 Pierre Loubigniac
 P.Loubigniac@bton.ac.uk
 http://ituser.it.bton.ac.uk/student/pl55/public_html/
 http://pcpl55.it.bton.ac.uk/~pl55/ (sometime)
-------------------------------------------------------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]