precompiled header .pch files are machine sensitive?
- by fresky
Hi, experts,
I tried to reuse the .pch to speed the build using the following way:
use /Yc on stdafx.cpp to create the .pch files to a folder
exclude stdafx.cpp in the project, and modify the link option
It success in my machine, but failed in another, got the error message: error C2011: '*' : 'struct' type redefinition
So first I want to ask whether the .pch files are machine sensitive? then secondly, the above approaches workable?
Thanks!