PhysX 3.3.x guide

Expanding and utilizing the engine via C++.
  • 1
  • 2
12 posts Page 2 of 2
noemen
Posts: 19
Joined: Tue May 29, 2018 3:46 pm
 
by noemen » Wed Jun 13, 2018 10:15 pm
PhysX 3.3.4

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

https://github.com/NVIDIAGameWorks/Phys ... 60447fb608
XeonRU
Posts: 1
Joined: Sun Jun 24, 2018 1:19 pm
by XeonRU » Sun Jun 24, 2018 1:55 pm
PhysX 3.3.4

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

https://github.com/NVIDIAGameWorks/Phys ... 60447fb608
Hey
fix code
PfnDliHook __pfnDliNotifyHook2 = delayHook; to const PfnDliHook __pfnDliNotifyHook2 = delayHook;
everything will be fine ;)
  • 1
  • 2
12 posts Page 2 of 2

Who is online

Users browsing this forum: No registered users and 1 guest