Constant LNK1104 errors in VS 2017 project

399 Views Asked by At

I have this huge ond very old C++ project I am building with Visual Studio 2017 using the VS 2013 compiler and Incredibuild.

When I am building the project I very often get LNK1104 linker errors, that the output file can't be opened. If I build again after getting the error, linking this project works fine but I get the same error with one of the next projects in the solution.

Sometimes this error doesn't occur and the whole solutions builds fine and other times I get this error a dozen times until I have all the projects build.

It looks like VS is blocking itself but I have no clue where to look at and didn't find many helpful clues so far. But this is driving me crazy.

1

There are 1 best solutions below

0
On

I've had similar issues with Incredibuild and it was always one of two reasons:

  • My project build order was wrong, so I was ending up trying to link to a lib/dll that was not builded yet
  • A running program somewhere else on my computer was already using one of the dll/exe I was trying to build

Try to review your build order by setting up each project's dependencies in Solution >> Project Dependencies >> Dependencies