Physx compiled checked, error __pfnDliNotifyHook2 redefinition

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

Published 41 original articles · praised 7 · 20,000+ views

Guess you like

Origin blog.csdn.net/pkxpp/article/details/90742069