Issues

Issue #26 resolved

APIENTRY undefined in framework.cpp

Anonymous avatarAnonymous created an issue

I get a compilation error when compiling framework.cpp because APIENTRY is not defined.

g++ -MMD -MP -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -DTIXML_USE_STL -DFREEGLUT_STATIC -DLOAD_X11 -DDEBUG -D_DEBUG -I../freeglut-2.6.0/include -I../glload/include -I../glm-0.9.0.7 -I../tinyxml -I. -g -o "lib/Debug/framework.o" -c "framework.cpp" framework.cpp:121:15: error: expected initializer before ‘DebugFunc’

I am using the 64-bit version of Ubuntu 11.04, with the distro freeglut (version 2.6.0-1ubuntu2), and gmake for premake build platform.

APIENTRY is normally defined through /usr/include/GL/gl.h, but glload/include/glload/gl_3_3.h defines the include guard gl_h_ to prevent it from being processed. Although gl_3_3.h defines APIENTRY, it undefines it at the end of the same file.

A simple workaround is to include -DAPIENTRY= to the failing command to having it compile properly. I used `make verbose=1` to have make print each command.

I used Mercurial to get the source. hg tip: 270:a841d616964c

Comments (2)

  1. Jason McKesson
    • changed status to open
    • changed milestone to 0.4

    Oh, that's the new debugging framework I added for 0.4. I haven't tested it on Linux yet, so I don't expect it to work there. Yet.

    This will be fixed for version 0.4.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.