else/error
-
[컴파일 에러] error C2371else/error 2019. 2. 11. 16:08
IDE: Visual studio 2017language: C++에러난 지점 : struct TagPoint { int x; int y; }; typedef TagPoint POINT; typedef TagPoint* _POINT; Error error C2371: 'POINT': 재정의. 기본 형식이 다릅니다. 오류 해결법 C2371에러는 오류 메시지와 같이 redefinition일때 발생한다. 나의 경우는 구조체 포인터의 POINT부분에서 에러가 났는데 POINT STRUCTURE 를 클릭해서 읽어보면 알 수 있듯이 windows.h헤더파일에 포함되어있는 구조체 포인터의 이름과 선언한 구조체 포인터 변수의 이름이 같아 문제가 생긴 것 이다. - C2371에러의 경우 오류목록 하단의 메세지를 클릭하면 ..
-
[컴파일 에러] Error C2664else/error 2018. 12. 30. 15:20
IDE: Visual studio 2017language: C++에러난 지점 : void setStage(char Maze[21][21], _POINT pPlayerPos, _POINT pStartPos, _POINT pEndPos) void Output(char Maze[21][21], _POINT pPlayerPos) void MoveChr(char Maze[21][21], _POINT pPlayerPos, char cinput) Error error C2664: 'void setStage(char [][34],_POINT,_POINT,_POINT)': 인수 2을(를) 'POINT *'에서 '_POINT'(으)로 변환할 수 없습니다. error C2664: 'void Output(char [][34]..