title: Building UEFI driver using Visual Studio
body: <p>I'm looking for advice on how to build UEFI drivers with the EDK2 SDK using a Visual Studio 2012 project. I'm trying to statically link UefiLib.lib but failing miserably. I've added the lib to the additional dependencies under linker.</p>
  
  <pre><code>#include  &lt;Uefi.h&gt;
  #include  &lt;Library/UefiLib.h&gt;
  
  EFI_STATUS
  EFIAPI
  UefiMain (
    IN EFI_HANDLE        ImageHandle,
    IN EFI_SYSTEM_TABLE  *SystemTable
    )
  {
   Print((CHAR16 *)L"Welcome to the world of EDK II.\n");
   return EFI_SUCCESS;
  }
  </code></pre>
  
  <p>Error is </p>
  
  <pre><code>test.obj : error LNK2001: unresolved external symbol "unsigned __int64 __cdecl Print(unsigned short const *,...)" (?Print@@YA_KPEBGZZ)
  </code></pre>
  
  <p>Now i've used DUMPBIN to make sure that Print exists in the lib, however it exists not as an export or import but as an archivemember. I'm not sure if thats the issue.</p>