[Gllug] library includes and compiling

Jonathan Dye jonathan.dye at automationpartnership.com
Wed Jan 9 07:55:41 UTC 2002


At 18:15 08/01/02 +0000, you wrote:
>Or use a makefile.

I am am but it still has to contain -L/usr/X11R6/lib somewhere.  I wanted
to know if there was a way to make this a default search path rather than
hving to explicitly specify it.

>On Tue, Jan 08, 2002 at 12:41:00PM -0000, Anthony Baldwin wrote:
>> you could link the open GL library in the defualt search path
>> of gcc - say in /lib. not a great idea really.
>> or try editing the specs file for gcc.
>> or make gcc an alias.
>> 
>> /Anthony/
>> 
>> -----Original Message-----
>> From: gllug-admin at linux.co.uk [mailto:gllug-admin at linux.co.uk]On Behalf
>> Of Jonathan Dye
>> Sent: 08 January 2002 11:25
>> To: gllug at linux.co.uk
>> Subject: [Gllug] library includes and compiling
>> 
>> 
>> I'm trying to compile against the OpenGL libraries in /usr/X11R6/lib by
>> doing
>> 
>> gcc source.c -lGL
>> 
>> but it doesn't find them.  I have /usr/X11R6/lib in /etc/ld.so.conf and
>> I've run ldconfig. I guess that this is related to run-time linking though
>> rather than compile-time linker search directories because it doesn't help.
>> I can compile using
>> 
>> gcc source.c -L/usr/X11R6/lib -lGL
>> 
>> but I was hoping to aviod this if possible.
>> Can anyone help?
>> 
>> JD
>> 
>> _____________________________________________________________________
>> This message has been checked for all known viruses by the
>> MessageLabs Virus Scanning Service
>> 
>> -- 
>> Gllug mailing list  -  Gllug at linux.co.uk
>> http://list.ftech.net/mailman/listinfo/gllug
>> 
>> 
>> -- 
>> Gllug mailing list  -  Gllug at linux.co.uk
>> http://list.ftech.net/mailman/listinfo/gllug
>> 
>
>Attachment Converted: "c:\eudora\attach\Re [Gllug] library includes an"
>

_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list