Help Me Please T T

1>------ Build started: Project: P5, Configuration: Debug Win32 ------
1>Build started 9/3/2013 3:14:18 PM.
1>PrepareForBuild:
1> Creating directory "c:\users\acerm2\documents\visual studio 2010\Projects\P5\Debug\".
1>InitializeBuildStatus:
1> Creating "Debug\P5.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> P6.cpp
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(353): error C2381: 'exit' : redefinition; __declspec(noreturn) differs
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\glut.h(146) : see declaration of 'exit'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.13
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Last edited on
Line 146 of glut.h and line 353 of stdlib.h seem to declare same symbol differently (as in not an overload). Both are library headers, so the first guess is that the content of P6.cpp confuses the compiler.
Topic archived. No new replies allowed.