BullseyeCoverage Up Contents Search

Error LNK2011 precompiled object not linked in; image may not run

SYMPTOMS

The error below occurs with Microsoft Visual Studio 2012 or later.

error LNK2011: precompiled object not linked in; image may not run

CAUSE

You created a precompiled header with BullseyeCoverage instrumentation enabled and then used the precompiled header with instrumentation disabled.

RESOLUTION

Rebuild everything either with instrumentation enabled or with instrumentation disabled.

Updated: 8 Dec 2011