PhysX-3.4 icon indicating copy to clipboard operation
PhysX-3.4 copied to clipboard

compile fail when PxPhysXConfig.h modified

Open jintiao opened this issue 8 years ago • 1 comments

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'

jintiao avatar Jan 20 '17 01:01 jintiao

Thanks for bringing this to our attention.

kstorey-nvidia avatar Jan 23 '17 15:01 kstorey-nvidia