Visual Studio 2013 fatal error C1041 /FS

Solution 1:

I had this problem because different projects in a solution had the same intermediate directory.

Changing

$(Platform)\$(Configuration)\

to

$(Platform)\$(Configuration)\$(ProjectName)\

in

Configuration Properties | General | Intermediate Directory

in each of the projects solved it.

Solution 2:

I agree with PThomasCS.

Firstly I tried to use Microsoft advice /FS (Force Synchronous PDB Writes):

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Working with Project Properties.
  2. Select the C/C++ folder.
  3. Select the Command Line property page.
  4. Modify the Additional Options property to include /FS and then choose OK.

but it didn't work.

I noticed that dropbox lock the file. I stopped the synchronization. After that error disappeared. So try to close/stop any program that may lock the files.

Hope this helps.