title: C++: error LNK2019: unresolved external symbol __snprintf referenced in function
body: <p>I'm trying to compile a project but I'm getting this error:</p>
  
  <pre><code>1&gt;project.obj : error LNK2019: unresolved external symbol __snprintf referenced in function "unsigned char * __cdecl GetResource(char *,unsigned long &amp;)" (?GetResource@@YAPAEPADAAK@Z)
  1&gt;Release/file.bin : fatal error LNK1120: 1 unresolved externals
  </code></pre>
  
  <p>I'm using VC++ 2010 and also tried compiling with CodeBlocks, but getting a similar error:</p>
  
  <pre><code>windres.exe  -J rc -O coff -i C:\Users\x\Desktop\project\project\File.rc -o .objs\File.res
  windres.exe: no resources
  Process terminated with status 1 (0 minutes, 0 seconds)
  </code></pre>
  
  <p>I have File.rc in my project directory but it's 0kb, I have no idea how to fix this.</p>
  
  <p>I'm pretty sure this is not related to something in the code so I did not post a sample, but if you require one, I'll post it.</p>