이 에러 왜 나는걸까욤....

프로그래밍 일반에 관한 포럼입니다.

Moderator: 류광

Locked
비회원

이 에러 왜 나는걸까욤....

Post by 비회원 »

1>------ Build started: Project: Test_STL_Sixth, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(963) : error C2061: syntax error : identifier 'T'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(964) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>Build log was saved at "file://d:\Data\Study\C++ Test\Test_STL_Sixth\Debug\BuildLog.htm"
1>Test_STL_Sixth - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


뭐 이거 이상한게요...

전에는 컴파일이 다른부분에서 에러 떴었는데요....

언제부턴가 이 에러만 뜨네요?;



닷넷을 다시 깔아야할까요?;

맛탱이가 정말 간걸까요;
Zeprod
Posts: 480
Joined: 2006-11-04 16:24
Location: Creaty Networks
Contact:

Post by Zeprod »

식별자 T를 찾을 수 없다고 하는군요.
템플릿을 사용하시는 것같은데, 관련부분을 한번더 살펴보시는게 좋을 것 같습니다.
세상이 기다리는 나만의 SHOW!
----------------------------------------------
Zeprod 홈 : http://Zeprod.org
Project. Creaty : http://Creaty.net/
Creaty 게임제작 커뮤니티 : http://Creaty.net/game/
----------------------------------------------
비회원

.

Post by 비회원 »

안녕하세요?

프로젝트 설정에서 C/C++ <- Advanced <- Compile As 설정이
C++ 로 되어있는게 아니라 C 로 되어있는지 한 번 확인해 보세용.

해당 파일의 해당 라인 부분을 보니까 바로 윗부분에서 #ifdef 으로 __cplusplus
로 판단을 하는데, 혹시나 말씀드린 방법으로 안된다면 #undef __cplusplus 라던지..
__cplusplus 를 직접 디파인 한다거나 건드리는 부분을 찾아보시고..

이래도 안된다면 재설치를 권장합니다만... 혹시나 같은 증상을 겪으신 분이 계신다면
답변을.. --;
Locked