* How do I link libraries with g++...
@ 2000-05-28 7:33 Hendrix
2000-05-28 8:29 ` Alexandre Oliva
0 siblings, 1 reply; 2+ messages in thread
From: Hendrix @ 2000-05-28 7:33 UTC (permalink / raw)
To: gcc, gcc-help
Hi guys...
I'm trying to use the Mesa (OpenGL) with g++ to develop graphics
applications, but I have no idea how to link the Mesa and Glut libraries
to my program (test.c}.... I've downloaded sample code utilizing header
files and libraries from both Mesa and Glut, but I can't compile the
sample code... I'm thinking I need to link the libraries into the
source file, but I have no idea how to do this with g++... Any help
will be greatly appreciated... Thanks...
Sincerely,
Trevor...
P.S. I have already successfully installed Mesa from source, and Glut
from RPM...
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How do I link libraries with g++...
2000-05-28 7:33 How do I link libraries with g++ Hendrix
@ 2000-05-28 8:29 ` Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2000-05-28 8:29 UTC (permalink / raw)
To: Hendrix; +Cc: gcc, gcc-help
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 552 bytes --]
On May 28, 2000, Hendrix <tgjp@thezone.net> wrote:
> I'm trying to use the Mesa (OpenGL) with g++ to develop graphics
> applications, but I have no idea how to link the Mesa and Glut libraries
> to my program (test.c}....
It's no different from gcc: -lname.
--
Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-28 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-28 7:33 How do I link libraries with g++ Hendrix
2000-05-28 8:29 ` Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).