NVIDIAGameWorks / PhysX-3.4

NVIDIA PhysX SDK 3.4
https://www.nvidia.com/
2.35k stars 274 forks source link

compile fail when PxPhysXConfig.h modified #2

Open jintiao opened 7 years ago

jintiao commented 7 years ago

in PxPhysXConfig.h, try set these macro from 1 to 0 then compile

#define PX_USE_PARTICLE_SYSTEM_API 0
#define PX_USE_CLOTH_API 0

compile output:

1>------ Build started: Project: SimulationController, Configuration: debug x64 ------
1>  ScElementSim.cpp
1>..\..\SimulationController\src\ScElementSim.cpp(122): error C2039: 'eCLOTH': is not a member of 'physx::Sc::ElementType'
1>  e:\physx-3.4\physx_3.4\source\simulationcontroller\src\ScElementSim.h(49): note: see declaration of 'physx::Sc::ElementType'
1>..\..\SimulationController\src\ScElementSim.cpp(122): error C2065: 'eCLOTH': undeclared identifier
1>..\..\SimulationController\src\ScElementSim.cpp(122): error C2086: 'char PxCompileTimeAssert_Dummy[1]': redefinition
1>  E:\PhysX-3.4\PxShared\include\foundation/PxPreprocessor.h(485): note: see declaration of 'PxCompileTimeAssert_Dummy'
1>..\..\SimulationController\src\ScElementSim.cpp(123): error C2039: 'ePARTICLE_PACKET': is not a member of 'physx::Sc::ElementType'
1>  e:\physx-3.4\physx_3.4\source\simulationcontroller\src\ScElementSim.h(49): note: see declaration of 'physx::Sc::ElementType'
1>..\..\SimulationController\src\ScElementSim.cpp(123): error C2065: 'ePARTICLE_PACKET': undeclared identifier
1>..\..\SimulationController\src\ScElementSim.cpp(123): error C2086: 'char PxCompileTimeAssert_Dummy[1]': redefinition
1>  E:\PhysX-3.4\PxShared\include\foundation/PxPreprocessor.h(485): note: see declaration of 'PxCompileTimeAssert_Dummy'
kstorey-nvidia commented 7 years ago

Thanks for bringing this to our attention.