Article Directory
Basic Information
- Physx-3.3.4
- vs2012
- checked
Report an error
error C2373: '__pfnDliNotifyHook2' : redefinition; different type modifiers
Two first places, one declared place
- 1.WindowsCookingDelayLoadHook.cpp
const PfnDliHook __pfnDliNotifyHook2 = delayHook;
- 2.NpWindowsDelayLoadHook.cpp
const PfnDliHook __pfnDliNotifyHook2 = delayHook;
- Affirmed delayimp.h
ExternC
PfnDliHook __pfnDliNotifyHook2;
solve
Because const is not used in the declared place, the definition of the two places conflicts, so there is only one declaration when const is removed, and there are definitions in two different places