From: "Claudio Bley" <bley@cs.uni-magdeburg.de>
To: Bill Ramsay <RamsayW@attbi.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Can't make an OpenGL program
Date: Wed, 04 Sep 2002 16:15:00 -0000 [thread overview]
Message-ID: <15734.37887.533373.28886@wh2-19.st.uni-magdeburg.de> (raw)
In-Reply-To: <3D76894C.7080803@attbi.com>
>>>>> "Bill" == Bill Ramsay <RamsayW@attbi.com> writes:
Bill> I am new to both OpenGL and GCC, but not to C/C++. I am
Bill> including <GL/glut.h>, which is where it is supposed to be
Bill> (usr/include/GL under RH Linux 7.3) and apparently the file
Bill> is being found. But when I run make or just compile I get
Bill> an undefined reference for every method I'm trying to use in
Bill> glut.h.
Bill> The file looks fine and the methods are defined.
No, the functions are only declared in that header file, they are
defined in the appropriate library.
Bill> What am I doing wrong?
You forgot to link with the libglut library. Just specify -lglut as an
additional command line option to gcc.
HTH
Claudio
prev parent reply other threads:[~2002-09-04 23:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-04 15:30 Bill Ramsay
2002-09-04 16:15 ` Claudio Bley [this message]
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=15734.37887.533373.28886@wh2-19.st.uni-magdeburg.de \
--to=bley@cs.uni-magdeburg.de \
--cc=RamsayW@attbi.com \
--cc=gcc-help@gcc.gnu.org \
/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).