Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-Id: <5.2.0.9.0.20030402163808.025f3c00@irispavp.igb.umontreal.ca>
X-Sender: bleau2@irispavp.igb.umontreal.ca (Unverified)
Date: Wed, 02 Apr 2003 16:42:37 -0500
To: cygwin@cygwin.com
From: Andre Bleau <bleau@igb.umontreal.ca>
Subject: Re: glui.h compilation prb
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
X-MDRemoteIP: 10.52.50.2
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 h32LfTV12228

Your problem is caused by gcc 3 stricker friend declaration checking; you 
should stick with gcc 2 (g++ 2) until the opengl package is updated. Use:

g++-2 -o glui glui.C -lglui -lglut32 -lglu32 -lopengl32

"-=]Shromilder[=-" <shromilder at wanadoo dot fr> wrote:

>Hi everyone,
>
>I have a little probleme:
>I'm using the last version of CygWin with all last packages but when i try
>to compile a simple programme using glui.h library, i always get those
>error:
>$ gcc -o glui glui.C -lglui -lglut32 -lglu32 -lopengl32
>In file included from glui.C:16:
>/usr/include/glui.h:329: friend declaration requires class-key, i.e. `friend
>    struct GLUI_Rollout'
>/usr/include/glui.h:330: friend declaration requires class-key, i.e. `friend
>    struct GLUI_Main'
>/usr/include/glui.h:593: friend declaration requires class-key, i.e. `friend
>    struct GLUI_Control'
>/usr/include/glui.h:594: friend declaration requires class-key, i.e. `friend
>    struct GLUI_Rotation'
>/usr/include/glui.h:595: friend declaration requires class-key, i.e. `friend
>    struct GLUI_Translation'
>/usr/include/glui.h:596: friend declaration requires class-key, i.e. `friend
>    struct GLUI'
>/usr/include/glui.h:597: friend declaration requires class-key, i.e. `friend
>    class GLUI_Master_Object'
>here is the glui.C file that i'm trying to compile (it's exemple2 of the
>original glui package): 
><http://shromy.free.fr/glui.C>http://shromy.free.fr/glui.C
>
>I hope to get an answer from you =)
>bye, Shromilder



André Bleau, Cygwin's OpenGL package maintainer.

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

Please address all questions and problem reports about Cygwin's OpenGL 
package to cygwin@cygwin.com . 


--
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/

