[Gllug] library includes and compiling

Pete Ryland pdr at pdr.cx
Tue Jan 8 18:15:24 UTC 2002


Or use a makefile.

Pete

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
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20020108/addfdfb6/attachment.pgp>


More information about the GLLUG mailing list