#102 2.4.0 fails to compile in MinGW/MSYS with GCC 4.2.1

open
nobody
critical (31)
5
2007-11-07
2007-11-07
M.K.A.
No

Here's make/GCC output with the initial stuff removed

make[2]: Entering directory `/f/libsrc/freeglut-2.4.0/src'
source='freeglut_callbacks.c' object='libglut_la-freeglut_callbacks.lo' libtool=yes \ depfile='.deps/libglut_la-freeglut_callbacks.Plo' tmpdepfile='.deps/libglut_la-freeglut_callbacks.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -pedantic -Werror -c -o libglut_la-freeglut_callbacks.lo `test -f freeglut_callbacks.c || echo './'`freeglut_callbacks.c
rm -f .libs/libglut_la-freeglut_callbacks.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -pedantic -Werror -c freeglut_callbacks.c -MT libglut_la-freeglut_callbacks.lo -MD -MP -MF .deps/libglut_la-freeglut_callbacks.TPlo -DDLL_EXPORT -DPIC -o .libs/libglut_la-freeglut_callbacks.lo
cc1.exe: warnings being treated as errors
freeglut_callbacks.c:48: warning: 'glutDisplayFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:60: warning: 'glutReshapeFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:70: warning: 'glutKeyboardFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:79: warning: 'glutSpecialFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:88: warning: 'glutIdleFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:98: warning: 'glutTimerFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:143: warning: 'glutVisibilityFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:158: warning: 'glutKeyboardUpFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:167: warning: 'glutSpecialUpFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:178: warning: 'glutJoystickFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:196: warning: 'glutMouseFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:205: warning: 'glutMouseWheelFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:215: warning: 'glutMotionFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:225: warning: 'glutPassiveMotionFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:234: warning: 'glutEntryFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:243: warning: 'glutCloseFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:249: warning: 'glutWMCloseFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:256: warning: 'glutMenuDestroyFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:266: warning: 'glutMenuStateFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:275: warning: 'glutMenuStatusFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:284: warning: 'glutOverlayDisplayFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:293: warning: 'glutWindowStatusFunc' redeclared without dllimport attribute after being referenced with dll linkage
freeglut_callbacks.c:302: warning: 'glutSpaceballMotionFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:311: warning: 'glutSpaceballRotateFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:320: warning: 'glutSpaceballButtonFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:329: warning: 'glutButtonBoxFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:338: warning: 'glutDialsFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:347: warning: 'glutTabletMotionFunc' redeclared without dllimport attribute: previous dllimport ignored
freeglut_callbacks.c:356: warning: 'glutTabletButtonFunc' redeclared without dllimport attribute: previous dllimport ignored
make[2]: *** [libglut_la-freeglut_callbacks.lo] Error 1
make[2]: Leaving directory `/f/libsrc/freeglut-2.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/f/libsrc/freeglut-2.4.0'
make: *** [all] Error 2

Discussion