Hi, I am having problems with compiling a code in cygwin specifically. This code is written in c++ on Linux platform. It was originally made by my boss, so I can't disclose the code, only the error can be shown, sorry for the inconvenience. The code compiled perfectly within ubuntu and fedora, but for some reason the code got a compilation error in cygwin as shown below:
Code:
> $ make
> c++ -c -mwindows -DWIN32 -I. -g -pg -DOBJ_CLASS -DNOMINMAX DrawingObj.cc
> In file included from Quaternion.h:8,
> from Fl_Gl_Tb_Window.h:12,
> from drawgl.h:8,
> from DrawingObjects.h:10,
> from DrawingObj.cc:1:
> Global.h:49:1: warning: "ERROR" redefined
> In file included from
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32a
> pi/windows.h:52,
> from /usr/include/FL/gl.h:38,
> from drawgl.h:5,
> from DrawingObjects.h:10,
> from DrawingObj.cc:1:
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/wingdi.h:313:1:
> war
> ning: this is the location of the previous definition
> DrawingObj.cc: In member function `SurfaceElement*
> VolElement::planecut(char*, G
> Lfloat*, Interpolator<DATA_TYPE>*&, int, const int (*)[2], int)':
> DrawingObj.cc:286: error: `Polygon' is not a type
> make: *** [DrawingObj.o] Error 1
>
The reason that I have to use cygwin is because the client that I have to present to has a Windows XP environment with cygwin installed, so there is no choice other than figuring out what was going on. Also, i have compiled "hello world" in both c and c++ in cygwin for testing and both worked.
Please help me solve this problem!
Thanks!