News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Link error with minhook

Started by unwake, Yesterday at 04:09:53 AM

Previous topic - Next topic

unwake

https://github.com/TsudaKageyu/minhook/releases/tag/v1.3.4
Minhook has dynamic and static lib, link with dynamic lib is ok, but link with static lib "libMinHook.x64.lib", say error:
POLINK: fatal error: Unsupported anonymous format in object 'x64\Release\libMinHook\hook.obj'.
can you fix it ?

TimoVJL

#1
That ANON_OBJECT_HEADER is a problem for linking.
Check library with pope.exe
May the source be with you

Vortex

Sorry but is it allowed to discuss about API hooking in this forum?
Code it... That's all...

Pelle

#3
Quote from: unwake on Yesterday at 04:09:53 AMhttps://github.com/TsudaKageyu/minhook/releases/tag/v1.3.4
Minhook has dynamic and static lib, link with dynamic lib is ok, but link with static lib "libMinHook.x64.lib", say error:
POLINK: fatal error: Unsupported anonymous format in object 'x64\Release\libMinHook\hook.obj'.
can you fix it ?
I can't find any documentation about this format (I'm guessing this is a some semi-new Microsoft crap, and with their documentation department being years behind everyone else, maybe not surprising). I will keep looking, but with no proper documentation I'm not sure what I can do...

EDIT: after some testing, this looks like MSVC link-time code generation. This library can only work with Microsoft tools ...

/Pelle

Pelle

Quote from: Vortex on Yesterday at 09:52:04 AMSorry but is it allowed to discuss about API hooking in this forum?
Like many other things, this can be used for both good and bad.
It depends on the context. So far I see nothing out of line here...
/Pelle