[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem compiling Opengl example with CYGWIN



Hi V users,

I have tried to compile (make objs) the opengl bounce example with the new
fix for 
cygwin compiler and get the following error messages:

g++ -c -O -I/cygnus/v/includew -o /cygnus/v/obj/gnuwin32/bncapp.o bncapp.cpp

In file included from \cygnus\v\includew\v/vbglcnv.h:20,
                 from bnccnv.h:7,
                 from bnccmdw.h:17,
                 from bncapp.h:16,
                 from bncapp.cpp:6:
\cygnus\v\includew\GL/gl.h:1157: warning: `APIENTRY' redefined
C:\cygnus\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..
\..\..\..\i586-cygwin32\include\Windows32/Base.h:296: warning: this is the
location of the previous definition

g++ -c -O -I/cygnus/v/includew -o /cygnus/v/obj/gnuwin32/bnccnv.o bnccnv.cpp

In file included from \cygnus\v\includew\v/vbglcnv.h:20,
                 from bnccnv.h:7,
                 from bnccnv.cpp:14:
\cygnus\v\includew\GL/gl.h:1157: warning: `APIENTRY' redefined
C:\cygnus\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..
\..\..\..\i586-cygwin32\include\Windows32/Base.h:296: warning: this is the
location of the previous definition


g++ -c -O -I/cygnus/v/includew -o /cygnus/v/obj/gnuwin32/bnccmdw.o
bnccmdw.cpp

In file included from \cygnus\v\includew\v/vbglcnv.h:20,
                 from bnccnv.h:7,
                 from bnccmdw.h:17,
                 from bnccmdw.cpp:9:
\cygnus\v\includew\GL/gl.h:1157: warning: `APIENTRY' redefined
C:\cygnus\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..
\..\..\..\i586-cygwin32\include\Windows32/Base.h:296: warning: this is the
location of the previous definition

The modified makefile that I have used is given below.

Does someone has any idea how to correct this double definition?

Thank in advance for your help.

Gilles B.)

****************************************************************************
********************************
#=======================================================================
#@V@:Note: This file generated by vgen V1.04 (10:59:00 22 Jun 1998).
#=======================================================================

CC  =	g++

HOMEV	=	/cygnus/v
LIBS    =	-lV -lVgl -lglu32 -lopengl32 -lcomctl32 -mwindows
VLibDir =	$(HOMEV)/lib/gnuwin32
oDir    =	/cygnus/v/obj/gnuwin32
Bin     =	/cygnus/v/bin/gnuwin32

VPATH   =	$(HOMEV)/includew/v

#--------------------------------------------------------------
# Architecture dependent

# Flags for includes and libraries

CFLAGS  =	-O -I$(HOMEV)/includew

LFLAGS  =	-O -L$(VLibDir)

EXOBJS  =	$(oDir)/bncapp.o \
		$(oDir)/bnccnv.o \
		$(oDir)/bnccmdw.o


Reply to: