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



Pierre Loubigniac wrote:

> 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 :
 
The libXext.* library on your machine is probably installed in the directory
/usr/X11R6/lib.  Your machine is probably not configured to look in that 
directory as a default when linking.  The "-L/usr/X11R6/lib" adds that path
to the list of places to check, so the second command works.

  -- Steve Bonneville



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