Original Post
Hi I'm wondering if anyone gotten PGO to work. I'm facing the exact same issue as this guy http://forums.msdn.microsoft.com/de-DE/vcgeneral/thread/9c9dcc46-1e02-4520-84d7-d86cefae58f8/
Quote:
I'm trying to build our application using Profile-Guided Optimization in an automated fashion. Our build system already has support for gcc's PGO, so it wasn't a huge effort to make it work with VC++. I'm able to build everything with -GL and link with -LTCG: PGINSTRUMENT, and run the app to generate profiling data, and then run a second pass re-linking things with -LTCG: PGOPTIMIZE, and most of my DLLs link just fine. However, I get to the largest component in my system, which links multiple object files and static libraries together into one DLL, and the linker fails with the error "fatal error C1307: program has been edited since profile data was collected LINK : fatal error LNK1257: code generation failed". I looked at the build log, and the compiler is not run at all in the second build pass, so none of the objects or static libraries should have changed. Linking with -LTCG: PGUPDATE does work, but it gives me tons of warnings about functions that don't have data in the pgd file. These seem to all be functions from my static libraries. Is there a way to get the linker to give me more information about what it thinks has changed?