public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
To: tgjp@thezone.net
Cc: gcc-help@gcc.gnu.org
Subject: Re: How do I link libraries with g++...
Date: Sun, 28 May 2000 08:17:00 -0000	[thread overview]
Message-ID: <200005281513.RAA11003@loewis.home.cs.tu-berlin.de> (raw)
In-Reply-To: <39312DB5.14D3C108@thezone.net>

> 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

  reply	other threads:[~2000-05-28  8:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-28  7:33 Hendrix
2000-05-28  8:17 ` Martin v. Loewis [this message]
2000-05-28  8:29 ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200005281513.RAA11003@loewis.home.cs.tu-berlin.de \
    --to=martin@loewis.home.cs.tu-berlin.de \
    --cc=gcc-help@gcc.gnu.org \
    --cc=tgjp@thezone.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).