Other Problems

From Hawk Wiki
Revision as of 03:45, 18 February 2012 by Hall (Talk | contribs) (Created page with "==Compile glui in windows== download: <br> http://glui.sourceforge.net/#download <br> Go to msvc folder and build. A problem you may met:<br> "There is an incompatibility betwee...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Compile glui in windows

download:
http://glui.sourceforge.net/#download
Go to msvc folder and build. A problem you may met:

"There is an incompatibility between glut.h and Visual Studio .NET. that results in compile errors: error C2381: 'exit' : redefinition; __declspec(noreturn) differs error C3861: 'exit': identifier not found, even with argument-dependent lookup

To fix the error, right click on the project name in the Solution Explorer tab and select Properties -> C/C++ -> Preprocessor -> Preprocessor definitions and append GLUT_BUILDING_LIB to the existing definitions, seperated by semicolons. "