Page 1 of 1

Vs2017 I Cannot Build missing stddef.h ctype.h

Posted: Sat Aug 12, 2017 8:22 pm
by CarloTonyDaristotile
In Vs2017 I Cannot Build missing stddef.h ctype.h

I add the following to the Include Directories but still does't work
$(VC_IncludePath);$(WindowsSDK_IncludePath);
$(UniversalCRT_IncludePath);$(UniversalCRT_LibraryPath_x64);$(UniversalCRT_LibraryPath_x86);$(UniversalCRT_LibraryPath_arm);

OUPUT FILE VS2017
1>------ Build started: Project: Box2D, Configuration: Debug x64 ------
2>------ Build started: Project: GLEW, Configuration: Debug x64 ------
3>------ Build started: Project: GLFW, Configuration: Debug x64 ------
4>------ Build started: Project: IMGUI, Configuration: Debug x64 ------
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\CL.exe /c /ZI /nologo /W3 /WX- /diagnostics:classic /Od /D _CRT_SECURE_NO_WARNINGS /D DEBUG /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"obj\Debug\GLFW\\" /Fd"obj\Debug\GLFW\GLFW.pdb" /Gd /TC /errorReport:prompt ..\..\glfw\context.c ..\..\glfw\egl_context.c ..\..\glfw\init.c ..\..\glfw\input.c ..\..\glfw\monitor.c ..\..\glfw\vulkan.c ..\..\glfw\wgl_context.c ..\..\glfw\win32_init.c ..\..\glfw\win32_joystick.c ..\..\glfw\win32_monitor.c ..\..\glfw\win32_time.c ..\..\glfw\win32_tls.c ..\..\glfw\win32_window.c ..\..\glfw\window.c
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\CL.exe /c /I..\.. /ZI /nologo /W3 /WX- /diagnostics:classic /Od /D _CRT_SECURE_NO_WARNINGS /D DEBUG /D GLEW_STATIC /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"obj\Debug\GLEW\\" /Fd"obj\Debug\GLEW\GLEW.pdb" /Gd /TC /errorReport:prompt ..\..\glew\glew.c
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\CL.exe /c /I..\.. /ZI /nologo /W3 /WX- /diagnostics:classic /Od /D _CRT_SECURE_NO_WARNINGS /D DEBUG /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"obj\Debug\Box2D\\" /Fd"obj\Debug\Box2D\Box2D.pdb" /Gd /TP /errorReport:prompt ..\..\Box2D\Collision\Shapes\b2ChainShape.cpp ..\..\Box2D\Collision\Shapes\b2CircleShape.cpp ..\..\Box2D\Collision\Shapes\b2EdgeShape.cpp ..\..\Box2D\Collision\Shapes\b2PolygonShape.cpp ..\..\Box2D\Collision\b2BroadPhase.cpp ..\..\Box2D\Collision\b2CollideCircle.cpp ..\..\Box2D\Collision\b2CollideEdge.cpp ..\..\Box2D\Collision\b2CollidePolygon.cpp ..\..\Box2D\Collision\b2Collision.cpp ..\..\Box2D\Collision\b2Distance.cpp ..\..\Box2D\Collision\b2DynamicTree.cpp ..\..\Box2D\Collision\b2TimeOfImpact.cpp ..\..\Box2D\Common\b2BlockAllocator.cpp ..\..\Box2D\Common\b2Draw.cpp ..\..\Box2D\Common\b2Math.cpp ..\..\Box2D\Common\b2Settings.cpp ..\..\Box2D\Common\b2StackAllocator.cpp ..\..\Box2D\Common\b2Timer.cpp ..\..\Box2D\Dynamics\Contacts\b2ChainAndCircleContact.cpp ..\..\Box2D\Dynamics\Contacts\b2ChainAndPolygonContact.cpp ..\..\Box2D\Dynamics\Contacts\b2CircleContact.cpp ..\..\Box2D\Dynamics\Contacts\b2Contact.cpp ..\..\Box2D\Dynamics\Contacts\b2ContactSolver.cpp ..\..\Box2D\Dynamics\Contacts\b2EdgeAndCircleContact.cpp ..\..\Box2D\Dynamics\Contacts\b2EdgeAndPolygonContact.cpp ..\..\Box2D\Dynamics\Contacts\b2PolygonAndCircleContact.cpp ..\..\Box2D\Dynamics\Contacts\b2PolygonContact.cpp ..\..\Box2D\Dynamics\Joints\b2DistanceJoint.cpp ..\..\Box2D\Dynamics\Joints\b2FrictionJoint.cpp ..\..\Box2D\Dynamics\Joints\b2GearJoint.cpp ..\..\Box2D\Dynamics\Joints\b2Joint.cpp ..\..\Box2D\Dynamics\Joints\b2MotorJoint.cpp ..\..\Box2D\Dynamics\Joints\b2MouseJoint.cpp ..\..\Box2D\Dynamics\Joints\b2PrismaticJoint.cpp ..\..\Box2D\Dynamics\Joints\b2PulleyJoint.cpp ..\..\Box2D\Dynamics\Joints\b2RevoluteJoint.cpp ..\..\Box2D\Dynamics\Joints\b2RopeJoint.cpp ..\..\Box2D\Dynamics\Joints\b2WeldJoint.cpp ..\..\Box2D\Dynamics\Joints\b2WheelJoint.cpp ..\..\Box2D\Dynamics\b2Body.cpp ..\..\Box2D\Dynamics\b2ContactManager.cpp ..\..\Box2D\Dynamics\b2Fixture.cpp ..\..\Box2D\Dynamics\b2Island.cpp ..\..\Box2D\Dynamics\b2World.cpp ..\..\Box2D\Dynamics\b2WorldCallbacks.cpp ..\..\Box2D\Rope\b2Rope.cpp
4>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\CL.exe /c /I..\.. /ZI /nologo /W3 /WX- /diagnostics:classic /Od /D _CRT_SECURE_NO_WARNINGS /D DEBUG /D GLEW_STATIC /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"obj\Debug\IMGUI\\" /Fd"obj\Debug\IMGUI\IMGUI.pdb" /Gd /TP /errorReport:prompt ..\..\imgui\imgui.cpp ..\..\imgui\imgui_demo.cpp ..\..\imgui\imgui_draw.cpp ..\..\imgui\imgui_impl_glfw_gl3.cpp
2>glew.c
3>window.c
1>b2Rope.cpp
4>imgui_impl_glfw_gl3.cpp
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>win32_window.c
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2WorldCallbacks.cpp
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>win32_tls.c
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>win32_time.c
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2World.cpp
2>c:\program files (x86)\windows kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory
4>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
4>imgui_draw.cpp
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>win32_monitor.c
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Island.cpp
4>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
2>Done building project "GLEW.vcxproj" -- FAILED.
4>imgui_demo.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Fixture.cpp
3>win32_joystick.c
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>win32_init.c
4>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
4>imgui.cpp
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>wgl_context.c
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2ContactManager.cpp
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>vulkan.c
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>monitor.c
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Body.cpp
4>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
4>Generating Code...
4>Done building project "IMGUI.vcxproj" -- FAILED.
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2WheelJoint.cpp
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>input.c
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>init.c
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>egl_context.c
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2WeldJoint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2RopeJoint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2RevoluteJoint.cpp
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>context.c
3>c:\projects\box2d\box2d\glfw\glfw3.h(134): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
3>Generating Code...
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2PulleyJoint.cpp
3>Done building project "GLFW.vcxproj" -- FAILED.
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2PrismaticJoint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2MouseJoint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2MotorJoint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Joint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2GearJoint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2FrictionJoint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2DistanceJoint.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2PolygonContact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>Generating Code...
1>Compiling...
1>b2PolygonAndCircleContact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2EdgeAndPolygonContact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2EdgeAndCircleContact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2ContactSolver.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Contact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2CircleContact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2ChainAndPolygonContact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2ChainAndCircleContact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Timer.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2StackAllocator.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Settings.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Math.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Draw.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2BlockAllocator.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2TimeOfImpact.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2DynamicTree.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Distance.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2Collision.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2CollidePolygon.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2CollideEdge.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>Generating Code...
1>Compiling...
1>b2CollideCircle.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2BroadPhase.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2PolygonShape.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2EdgeShape.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2CircleShape.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>b2ChainShape.cpp
1>c:\projects\box2d\box2d\box2d\common\b2settings.h(22): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
1>Generating Code...
1>Done building project "Box2D.vcxproj" -- FAILED.
5>------ Build started: Project: Testbed, Configuration: Debug x64 ------
5>TestEntries.cpp
5>Test.cpp
5>Main.cpp
5>DebugDraw.cpp
5>Generating Code...
5>Done building project "Testbed.vcxproj" -- FAILED.
========== Build: 0 succeeded, 5 failed, 0 up-to-date, 0 skipped ==========

Re: Vs2017 I Cannot Build missing stddef.h ctype.h

Posted: Sun Aug 13, 2017 6:00 pm
by CarloTonyDaristotile
Issue closed.
Got it to work.

For each solution TestBed/IMGUI/GLFW/GLEW/Box2D
Right Click / Click on Properties / Click on VC++ Directories / Click on Include Directories
Add "C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt;"