I am trying to recompile solution file for memcached project on Windows 7 64 bit with Visual Studio 2008 and got the following error:
1>LINK : fatal error
I've had the same problem. Without setup a new hotfix I've found a very easy solution. To link a new solution I proceed in this way: 1) Compiling the file cpp (CTRL-F7) 2) Generating the solution (F7)
All the times the problem has disappeared
Turning off incremental linking didn't work for me because I was developing a static library and therefore instead of the Linker properties I had a Librarian.
So I found one more way to fix this:
Properties -> Configuration Properties -> C/C++ -> Optimization -> Whole program optimization
switch to "No".
It helped in my case.
I had a similar error when compiling an unreal-engine4 v4.23 game on Windows 10 with VS 2017 Community Edition. The solution was just to update to the latest version of visual-studio, as the subsequent patches included a fix for this. I am currently at v15.9.18 and it's compiling without this error.
No need to reboot or install any particular hotfixes, just the standard updates.
I had a similar error. After trying many cleans and rebuilds I went for the more nuclear option.
Could work for others, seemed to work for me.
Installing Windows SDK 7 for 64 bit platform resolved my problem. I simply didn't have it when I've tried to compile without it. My bad.
This is a bug in the linker. It may be the same as this problem. Try installing VS2008 Service Pack 1 if you don't have it as it contains that fix and others.
If this doesn't help, turning off incremental linking may be a workaround.