Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1020 Bytes

File metadata and controls

24 lines (16 loc) · 1020 Bytes
title Linker Tools Error LNK1277
description Learn more about: Linker Tools Error LNK1277
ms.date 11/04/2016
f1_keywords
LNK1277
helpviewer_keywords
LNK1277

Linker Tools Error LNK1277

object record not found in pgd (filename)

Remarks

When using /LTCG:PGOPTIMZE, the path of one of the input .lib, def, or .obj files was different from the path on which they were found during /LTCG:PGINSTRUMENT. This may be explained by a change in the LIB environment variable after /LTCG:PGINSTRUMENT. The full path to the input files is stored in the .pgd file.

/LTCG:PGOPTIMIZE requires that the inputs be identical to the /LTCG:PGINSTRUMENT phase.

To resolve this warning, do one of the following:

  • Run /LTCG:PGINSTRUMENT, redo all test runs, and run /LTCG:PGOPTIMIZE.

  • Change the LIB environment variable to what it was when you ran /LTCG:PGINSTRUMENT.

It is not recommended that you work around LNK1277 by using /LTCG:PGUPDATE.