0

I am trying to compile this example from for ARM/Windows RT, and I keep getting the following error from my compiler:

1>LINK : fatal error LNK1104: cannot open file 'vccorlibd.lib'

I did a search on my computer and found this lib does exist and it lives in "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib". So I am not sure what is going wrong. Anything would be helpful.

pnuts
  • 58,317
  • 11
  • 87
  • 139
Samurai336
  • 43
  • 1
  • 10

1 Answers1

0

The path to the application contains spaces. Put the path to the lib in double quotes, as per Why does fatal error "LNK1104: cannot open file 'C:\Program.obj'" occur when I compile a C++ project in Visual Studio?.

If that fails, ensure the directory you mention is in the list of lib search directories. See LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-1_45.lib' for more information.

Community
  • 1
  • 1
akton
  • 14,148
  • 3
  • 43
  • 47
  • So in VS 11 "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib" is not included by default in all VS projects? – Samurai336 Sep 25 '12 at 14:54
  • @Samurai336 Check by going to "Tools" menu -> Options menu item and in the resulting dialog "Projects and Solutions" -> "VC++ Directories" (although this has moved to a property sheet on in VS2012. If the directory is included and not unquoted, check whether something else has the file open already or try compiling in release mode, (since vccorlibd.lib is the debug version). – akton Sep 25 '12 at 15:00
  • So it turns out when I uninstalled VS ultimate it Nerfed my express ARM libs too – Samurai336 Sep 28 '12 at 19:22