sewenew / redis-plus-plus

Redis client written in C++
Apache License 2.0
1.6k stars 347 forks source link

Cannot link to hiredisd.dll - get fatal error LNK1107: invalid or corrupt file #478

Closed andrewjohnstonn closed 1 year ago

andrewjohnstonn commented 1 year ago

When trying to link to the hiredisd.dll from my redis-plus-plus cmake I get the following error:

hiredis\build\Debug\hiredisd.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x350 [D:\BACCHUS\redis\build\Redis\redis-plus-plus\redis++.vcxproj]

I have run the hiredis-test.exe and it passes, I have also rebuilt hiredis multiple times with no success. It builds if I use the hiredis static lib but my application will not run if I do this, and if I run the redis-plus-plus test exe it says that it cannot find the hiredisd.dll file.

Wondering if this is a common issue and if there is a solution to it?

Cheers