[plug] Getgui

Russell russellsteicke at gmail.com
Tue Nov 6 15:08:43 WST 2007


On 11/5/07, David Dartnall <darts at dialix.com.au> wrote:
...
> XLIBS = -L/usr/X11R6/lib -lX11
> XINCLUDEDIR = /usr/X11R6/include
>
> Neither path exists in Ubuntu Gutsy, and I can't find 'lX11'.
> What is the significance of the '-L' at the start of the XLIBS path and
> the '-' preceding the 'lX11'? How should this line read in Gutsy?

-Ldirname means "look for libraries in dirname, in addition to the
default set of directories".  -lfoo means "link with a library called
libfoo.a."  libfoo.a will be searched for in all the directories
specified with -L plus the default directories.

So with the XLIBS above, the linker is being told to look for
/usr/X11R6/lib/libX11.a, or /usr/lib/libX11.a, or /lib/libX11.a, and
possibly some others, using whichever it finds first.

To get the correct directory name, try running "locate libX11.a" and
using the directory name of the file that command shows you, if any.



-- 
Virus found in this message.



More information about the plug mailing list