title: Trying to call lib.exe from Visual Studio Command Prompt
body: <p>I am trying to call lib.exe from the Visual Studio Command Prompt so I can build the .lib file from my .def file. When I run this:</p>
  
  <p>lib.exe /MACHINE:X86 /DEF:MyDLL.def</p>
  
  <p>In the end I want to export my functions to be used when I call them from within a DLL. I am having to create this library because I have 2 DLLs and the first one calls the second one. The second one I just have the DLL itself and do not have the header or the .cpp file. I do not have the .lib file hence why I am trying to create one. I have used this tool <a href="http://purefractalsolutions.com/show.php?a=utils/expdef" rel="nofollow noreferrer">expdef - def file generator</a> to create my .def file and following this tutroial: <a href="http://support.microsoft.com/kb/131313" rel="nofollow noreferrer">How To Create 32-bit Import Libraries Without .OBJs or Source</a>, so I could build the library file. </p>
  
  <p>The error I receive from the command prompt is: </p>
  
  <p><strong><em>LINK : fatal error LNK1104: cannot open file 'MyDLL.def'</em></strong></p>
  
  <p>So I have tried searching through many forums and searches but cannot find a solution to why I see this. </p>
  
  <p>I have posted <a href="https://stackoverflow.com/questions/18004602/how-to-call-a-c-dll-method-inside-a-c-dll">this</a> on another forum here where it explains what I totally want to do.</p>