From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26295 invoked by alias); 4 Sep 2002 23:15:16 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26288 invoked from network); 4 Sep 2002 23:15:15 -0000 Received: from unknown (HELO wh2-19.st.uni-magdeburg.de) (141.44.162.19) by sources.redhat.com with SMTP; 4 Sep 2002 23:15:15 -0000 Received: by wh2-19.st.uni-magdeburg.de (Postfix, from userid 1000) id 0FC2890F60; Thu, 5 Sep 2002 01:15:14 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15734.37887.533373.28886@wh2-19.st.uni-magdeburg.de> Date: Wed, 04 Sep 2002 16:15:00 -0000 From: "Claudio Bley" To: Bill Ramsay Cc: gcc-help@gcc.gnu.org Subject: Re: Can't make an OpenGL program In-Reply-To: <3D76894C.7080803@attbi.com> References: <3D76894C.7080803@attbi.com> X-SW-Source: 2002-09/txt/msg00044.txt.bz2 >>>>> "Bill" == Bill Ramsay writes: Bill> I am new to both OpenGL and GCC, but not to C/C++. I am Bill> including , 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