Search code examples
c++visual-studiosdkphysx

PhysX.sln doesn't compile (PhysX 3.4)


I just downloaded PhysX 3.4 on GitHub, but it seems like I can't compile PhysX.sln. I get a lot of errors like this :

C1083 Cannot open include file: 'stddef.h': No such file or directory (compiling source file ....\SimulationController\src\ScTriggerInteraction.cpp)

I don't see why it doesn't compile... Any idea ? I'm using Visual Studio 2017 by the way.

Thanks !


Solution

  • I finally got rid of these errors by changing the Windows SDK Version (in each PhysX.sln's project : Properties > General > Windows SDK Version). But now I have this error

    C1189 #error: Visual studio 2017 prior to 15.5.1 is not supported because of a compiler bug.

    Apparently NVIDIA is aware of this error, so I guess we just can't compile PhysX.sln on Visual Studio 15.5.1 and below for the moment...