Jump to content

XeonRU

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by XeonRU

  1. 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/PhysX-3.3/pull/73/commits/dcd8d9e256bbfd8b41a39b1a30666a60447fb608

     

    Hey

    fix code

    PfnDliHook __pfnDliNotifyHook2 = delayHook; to const PfnDliHook __pfnDliNotifyHook2 = delayHook;

    everything will be fine ;)

×
×
  • Create New...