* How do I link libraries with g++...
@ 2000-05-28 7:33 Hendrix
2000-05-28 8:17 ` Martin v. Loewis
2000-05-28 8:29 ` Alexandre Oliva
0 siblings, 2 replies; 3+ 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] 3+ 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:17 ` Martin v. Loewis
2000-05-28 8:29 ` Alexandre Oliva
1 sibling, 0 replies; 3+ messages in thread
From: Martin v. Loewis @ 2000-05-28 8:17 UTC (permalink / raw)
To: tgjp; +Cc: gcc-help
> 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...
Please have a look at the gcc(1) manual page, or the section "Invoking
GCC" of the GCC manual; it explains all options of gcc in detail. Take
particular notice of the -l option.
If you still have problems, please report exactly what you did (in
terms of typing commands at the Unix shell), what the output of the
system was, and what you think should have happened instead.
Regards,
Martin
^ permalink raw reply [flat|nested] 3+ 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:17 ` Martin v. Loewis
@ 2000-05-28 8:29 ` Alexandre Oliva
1 sibling, 0 replies; 3+ 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] 3+ messages in thread
end of thread, other threads:[~2000-05-28 8:29 UTC | newest]
Thread overview: 3+ 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:17 ` Martin v. Loewis
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).