I was getting error at compile time, using vc14win64 on VS2015 SP3.
Severity Code Description Project File Line Suppression State
Error C2373 '__pfnDliNotifyHook2': redefinition; different type modifiers PhysXCooking C:\Users\Red\Documents\PhysX-3.3-master\PhysXSDK\Source\PhysXCooking\src\windows\WindowsCookingDelayLoadHook.cpp 64
which links too:
PfnDliHook __pfnDliNotifyHook2 = delayHook;
The solution I had was to have created a "#define DELAYIMP_INSECURE_WRITABLE_HOOKS" in PhysX-3.3-master\PhysXSDK\Source\ PhysX\src\ windows\NpWindowsDelayLoadHook.cpp
PhysX 3.3.x guide
in C++
Posted
Hey
fix code
PfnDliHook __pfnDliNotifyHook2 = delayHook; to const PfnDliHook __pfnDliNotifyHook2 = delayHook;
everything will be fine ;)