C error: Expected expression

Mark Brethen mark.brethen at gmail.com
Tue Nov 13 13:48:39 UTC 2018


Having patched calculix-cgx with the OpenGL framework, I’m now getting the following error when compiling glut:

:info:build /opt/local/bin/gcc-mp-5 -O2 -Wall -Wno-narrowing -I./ -I/usr/include -I../../libSNL/src -I../../glut-3.5/src -I/usr/X11/include    -c -o ../../glut-3.5/src/glut_ext.o ../../glut-3.5/src/glut_ext.c
:info:build ../../glut-3.5/src/glut_ext.c:16:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'glutExtensionSupported'
:info:build  glutExtensionSupported(const char *extension)
:info:build  ^
:info:build make: *** [../../glut-3.5/src/glut_ext.o] Error 1

what does this mean?

here’s line 14-17 in glut_ext.c:

/* CENTRY */
int APIENTRY 
glutExtensionSupported(const char *extension)
{



Mark Brethen
mark.brethen at gmail.com





More information about the macports-dev mailing list