Error when linking BoundsChecker instrumented code

0 Likes

Problem:

I see the following error when linking code instrumented with BoundsChecker:

Linking...

LINK : LNK6004: Debug/mfc.exe not found or not built by the last incremental link; performing full link

LINK : fatal error LNK1104: cannot open file "C:\bc\bcinterf.lib"

Error executing link.exe.

Resolution:

This happens when you have instrumented your code with BoundsChecker and then move the BoundsChecker file, bcinterf.lib, to a new directory (or remove it completely)

If you open the OBJs with notepad, you'll see the bcinterf.lib that was used at the time it was built.  If that path has changed, the link will fail.

You can get around this by performing a complete rebuild.

Old KB# 12322
Comment List
Anonymous
Related Discussions
Recommended