Skip to content

Linker issue when used as a project dependency #1

@samdiesbergen

Description

@samdiesbergen

hi when i include the detours.h file and then try to use it like this Graphics::pfn_Flip = MH_STATIC_DETOUR(Steam::GRAPHICS_FLIP, Graphics::GraphicsFlipCallback);

it throws the linker errors any time i use something referencing meow-hook

1>Patches.obj : error LNK2019: unresolved external symbol "public: void __cdecl meow_hook::detail::detour_base::hook(void)" (?hook@detour_base@detail@meow_hook@@QEAAXXZ) referenced in function "public: __cdecl meow_hook::detail::detour<__int64 __cdecl(class HDevice_t *)>::detour<__int64 __cdecl(class HDevice_t *)>(unsigned __int64,__int64 (__cdecl*)(class HDevice_t *))" (??0?$detour@$$A6A_JPEAVHDevice_t@@@Z@detail@meow_hook@@QEAA@_KP6A_JPEAVHDevice_t@@@Z@Z) 1>Patches.obj : error LNK2019: unresolved external symbol "public: void __cdecl meow_hook::detail::detour_base::unhook(void)" (?unhook@detour_base@detail@meow_hook@@QEAAXXZ) referenced in function "public: virtual __cdecl meow_hook::detail::detour<__int64 __cdecl(class HDevice_t *)>::~detour<__int64 __cdecl(class HDevice_t *)>(void)" (??1?$detour@$$A6A_JPEAVHDevice_t@@@Z@detail@meow_hook@@UEAA@XZ) 1>I:\Coding Projects\JC4-MP\Binary\Debug\ClientCore.dll : fatal error LNK1120: 2 unresolved externals

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions