Error linking to easyhook32.lib #4

Closed
spazzarama opened this Issue Aug 14, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@spazzarama
Member

spazzarama commented Aug 14, 2015

Moved from CodePlex
Originally submitted by DSridharC

Hi,

I am building an app using the EasyHook 2.7 (Beta). I get the following error when I try to build it for Win32 Platform.

fatal error LNK1107: invalid or corrupt file: cannot read at 0x2D8 <>

In my application, I am trying to link to easyhook32.lib.

Any suggestions why this happens ?

If I compile for x64 platform, it works fine.

Thanks

CodePlex comments

anroOfCode wrote May 16 at 4:20 AM
I'm seeing this too- I think the binary drop was published with the lib for static linkage.

@spazzarama spazzarama added the bug label Aug 14, 2015

@kaqkk

This comment has been minimized.

Show comment
Hide comment
@kaqkk

kaqkk Aug 27, 2015

On my build it is not even a lib. it is a dll, renamed to lib.

kaqkk commented Aug 27, 2015

On my build it is not even a lib. it is a dll, renamed to lib.

@kaqkk

This comment has been minimized.

Show comment
Hide comment
@kaqkk

kaqkk Aug 27, 2015

In post build event for x86 configs:
copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.lib" -->This is probably the cause.

kaqkk commented Aug 27, 2015

In post build event for x86 configs:
copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.lib" -->This is probably the cause.

@spazzarama

This comment has been minimized.

Show comment
Hide comment
@spazzarama

spazzarama Aug 27, 2015

Member

Lol, that will do it. Will take a look at this, probably the .lib is there and just not being copied correctly as you have pointed out.

Member

spazzarama commented Aug 27, 2015

Lol, that will do it. Will take a look at this, probably the .lib is there and just not being copied correctly as you have pointed out.

@spazzarama spazzarama added this to the 2.7 Stable milestone Aug 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment