Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-Id: <4.3.2.7.0.20010730100240.00b31c28@irispavp.igb.umontreal.ca>
X-Sender: bleau2@irispavp.igb.umontreal.ca
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Mon, 30 Jul 2001 10:08:40 -0400
To: cygwin@cygwin.com
From: Andre Bleau <bleau@igb.umontreal.ca>
Subject: Re: openGL problem
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
X-MDRemoteIP: 10.52.48.85
X-Return-Path: bleau@igb.umontreal.ca
X-MDaemon-Deliver-To: cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id KAA22986


>Hi,
>
>     I just installed cygwin and am having a problem with openGL code.  The
>libraries gl.h and glut.h are being found ok, but I still get "undefined
>reference" errors for basic open gl commands (such as glBegin and glEnd).
>Typical error messages are:
>
>   /cygdrive/c/WINDOWS/TEMP/ccErOYTE.o(.text+0x35d):sqr.c: undefined 
> reference
>to 'glBegin'
>
>/usr/libcygwin.a(libmain.o)(.text+0x6a):libmain.c: undefined reference to
>'Winmain@16'

This a linking problem. Consult /usr/doc/opengl-1.1.0/README.txt for 
linking instructions. What command exactly did you use for linking ?


>When I type 'echo $PATH" I find:
>/usr/local/bin:/usr/bin:/bin:/cygdrive/C/WINDOWS:/cygdrive/C/WINDOWS/COMMAND
>
>Is my path ok?  After running setup I didn't do anything else (I got the
>impression I didn't need to do anything else as everything was running; I
>even got the hello world program to run) and I'm wondering if I need to set
>up the path or my profile etc.

I don't think that the path or your profile has anything to do with your 
problem.


>Hope somebody can help fix this problem,
>
>Many thanks in advance!
>
>aks


André Bleau, Cygwin's OpenGL package maintainer.

email: bleau at igb dot umontreal dot ca
(Fight SPAM: encode your email-address)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

