I’ve received this Visual Studio error. Though I can figure out the jist of the problem, I don’t totally understand because I don’t know much about the build process. What is the real problem here and what are some potential solutions?
fatal error C1083: Cannot open compiler intermediate file:
'C:\libpath\libname.lib': Not enough space
LINK : fatal error LNK1257: code generation failed
Error executing link.exe (tool returned code: 1257)
I get “not enough space”, but I don’t really understand what that means. What kind of space does it need to build? Is this saying it ran out of RAM? How could this potentially be solved?
Note: the solution this is trying to build is huge
Update 9/28/2019 Since MS Connect has been retired, the previous link is now dead.
I was able to dig up this via google and pasting here for posterity:
This seems to be a bug. See this: http://connect.microsoft.com/VisualStudio/feedback/details/581207/visual-studio-2005-sp1-reproducible-linker-error-lkn1257-caused-by-c1083
Unfortunately, the solution isn’t that pleasing (unless you can upgrade to VS 2010).
An alternative would be to switch to MSBuild or Nant that you can run outside of VS 2005 process (you can map a shortcut to these tools so that you can trigger the build within VS 2005).