delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/04/14:40:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs
Date: Thu, 4 Dec 2003 13:40:30 -0600 (CST)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT eos
To: Steve Mowbray <steve_mowbray AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: GLUT programming in CygWin
In-Reply-To: <bqo210$jn$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.58.0312041336470.28297@eos>
References: <bqo210$jn$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0

Please read /usr/share/doc/opengl-1.1.0/README.txt.  And, search the
archives first next time since this issue comes up a lot.  Thanks.

On Thu, 4 Dec 2003, Steve Mowbray wrote:

> Am starting out with the GLUT library and I am having trouble compiling my
> first program under CygWin. I get the following compile/linker errors:
>
> /cygdrive/c/DOCUME~1/steve/LOCALS~1/Temp/ccO1yqTt.o(.text+0xd0):simple.c:
> undefined reference to `_glutDisplayFunc AT 4'
> /cygdrive/c/DOCUME~1/steve/LOCALS~1/Temp/ccO1yqTt.o(.text+0xd8):simple.c:
> undefined reference to `_glutMainLoop AT 0'
> collect2: ld returned 1 exit status
>
> I am compiling with
>
> gcc -lopengl32 -lglu32 -lglut32 test.c
>
Clue: wrong link order.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019