• 카테고리

    질문 & 답변
  • 세부 분야

    게임 프로그래밍

  • 해결 여부

    미해결

31:49초 에서도 GenPacket.bat 실행 시 오류 발생합니다

21.01.06 20:55 작성 조회수 265

0

오류내용 :

Protocol.proto:8:3: "C_CHAT" is already defined in "Protocol".

Protocol.proto:8:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "C_CHAT" must be unique within "Protocol", not just within "MsgId".

Protocol.proto:9:3: "S_CHAT" is already defined in "Protocol".

Protocol.proto:9:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "S_CHAT" must be unique within "Protocol", not just within "MsgId".

답변 1

답변을 작성해보세요.

2

에러 메시지에서 나온대로,
enum MsgId와 message를 다르게 하면 됩니다.
C_CHAT과 C_Chat 이렇게 대소문자를 구분해주시면 됩니다.