Visual C++ Concepts: Building a C/C++ Program
Compiler Warning (level 1) C4727
Error Message
"PCH named pch_file with same timestamp found in obj_file_1 and obj_file_2. Using first PCH.C4727 occurs when compiling multiple compilands with /Yc, and where the compiler was able to mark all .obj files with the same .pch timestamp.
To resolve, compile one source file with /Yc /c (creates pch), and the others compile separately with /Yu /c (uses pch), then link them together.
출처: http://msdn2.microsoft.com/en-us/library/ms235540(VS.80).aspx해결책: 미리컴파일된 헤더를 쓸 때는 "stdafx.cpp"에만 "미리컴파일된 헤더 만들기" 설정을 걸고 나머지 파일들은 전부 "미리컴파일된 헤더 사용"으로 설정한다.
"일반" 카테고리의 다른 글
- 유닛테스트를 해보고 느낀점 (8)2008/09/23
- 미리 컴파일된 헤더 쓸때 종종 나오는 경고 (C4727) (1)2008/01/07
Posted by Mizelan


