티스토리 툴바

★º쥬니's Story...


소스 혹은 파일(예를 들면, C파일)을 프로젝트에 추가시키고 왼쪽의 워크스페이스의 파일뷰에서 추가한 파일을 마우스 오른쪽 버튼을 눌러 setting을 선택한다.

그런후 [c/c++] 탭을 선택하고, 카테고리에서 [Precomfiled headers]를 선택한다.

마지막으로 Precomfiled headers 사용하지 않음을 선택한 후 실행하면 된다.


저작자 표시 비영리 변경 금지
Posted by ★º쥬니™
:: Study Story..... ::/| C/C++ | l 2009/01/30 13:38

fatal error C1010: unexpected end of file while looking for precompiled header directive


precompiled header란 미리 컴파일된 헤러를 의미하며, 파일(.h, .cpp 등)을 추가했을시 발생한다.
precompiled header는 #include "stdafx.h"를 필요로 하기때문에 만약 이것이 없다면 에러가 발생한다.

방법은 두가지가 있다.
1. 새로 추가한 파일이나 에러난 파일에(.h, .cpp 등) #include ""stdafx.h"가 없다면 추가해준다.

2. 프로젝트 속성(옵션)을 변경하는 방법이다.
 [프로젝트] -> [속성] -> [구성 속성] -> [C/C++] -> [category] -> [precompiled headers]
 여기에서 기본적으로 설정되어있는 [Use precompiled header file]을 [Not using precompiled headers]로 변경한다.


저작자 표시 비영리 변경 금지
Posted by ★º쥬니™
:: Study Story..... ::/| C/C++ | l 2009/01/30 04:48


fatal error C1853: 'Debug/xxx.pch' is not a precompiled header file created with this compiler


"C" 파일이 추가로 포함시켰을 경우 발생한다.

[Project Settings] -> [C/C++ tab] ->[category] -> [Precompiled Headers]
 선택한 후, [Not using precompiled headers]를 선택
 마지막으로 컴파일하면 끝~~
 

---------- 덧붙임 ----------

 debug 폴더를 모두 지우고 컴파일할 것!!
 여기서 말하는 precompiled header는 stdafx.h 파일을 말한다.


저작자 표시 비영리 변경 금지
Posted by ★º쥬니™
:: Study Story..... ::/| C/C++ | l 2009/01/30 04:38

 

fatal error C1083 : Cannot open precompiled header file 'Debug/xxx.pch' No Such file or directory



 빠른 컴파일을 하기 위하여 미리 컴파일된 .pch 파일이 없어서 나타나는 문제이다.
 해결 방법은 [Project setting] -> [C/C++] -> [PreCompiled Header] -> [Use precompiled header file]
 선택한 후, [Rebuild All]을 하면 된다.

저작자 표시 비영리 변경 금지
Posted by ★º쥬니™
:: Study Story..... ::/| C/C++ | l 2009/01/30 04:31
1 

카테고리

분류 전체보기 (38)
:: Project Story... :: (1)
:: Study Story..... :: (32)
:: IT Story..... :: (1)
:: Drama Story.... :: (0)
:: Movie Story..... :: (0)
:: Music Stroy..... :: (0)
:: Book Story...... :: (0)
:: Useful Story..... :: (4)

달력

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29