You are currently offline, waiting for your internet to reconnect

You may receive a "fatal error LNK1181" error message when you build a Visual C++ project in Visual Studio .NET or in Visual Studio 2005

SYMPTOMS
When you build a Microsoft Visual C++ .NET project in Microsoft Visual Studio .NET or a Microsoft Visual C++ 2005 project in Microsoft Visual Studio 2005, you may receive an error message that is similar to the following error message:
fatal error LNK1181: cannot open inputfile ‘f:\temp\test.obj’
CAUSE
This problem may occur when the path of the Intermediate file folder or the path of the Output file folder in the Visual C++ project starts with a leadingbackward slash (\). The IDE uses the drive from where it is launched. The IDE does not use the drive that theproject uses.
WORKAROUND
To work around this problem, include the drive name for the Intermediate file folder and for the Output file folder. To edit the entries for the IntDir folder or for the OutDir folder, follow these steps:
  1. On the Project menu, click Properties Pages.
  2. In the Properties Pages dialog box, click Configuration Properties.
  3. In the General list, type new entries for the Output Directory items and for the Intermediate Directory items that include the drive names.
Properties

Article ID: 839286 - Last Review: 01/11/2006 19:36:00 - Revision: 2.0

  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • kbprb KB839286
Feedback