inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

홍정모의 게임 만들기 연습 문제 패키지

1.1 실시간 상호작용 어플리케이션의 구조

예제 다운로드 받고 바로 실행하는데 빌드 실패 뜨는데 어떻게 해결해야하나요 ?

666

SIHEON KIM

작성한 질문수 2

0

예제 다운로드 받고 바로 실행하는데 빌드 실패 뜨는데 어떻게 해결해야하나요 ?\

2015년 비주얼 스튜디오로 실행하면
>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

이렇게 오류가 뜨네요 ㅠ

2019년 비주얼 스튜디오로 실행해면

1>DrawFunctions.obj : error LNK2019: __imp_glBegin 외부 기호(참조 위치: "void __cdecl jm::drawFilledBox(class jm::RGB const &,float const &,float const &)" (?drawFilledBox@jm@@YAXAEBVRGB@1@AEBM1@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glColor3fv 외부 기호(참조 위치: "void __cdecl jm::drawFilledBox(class jm::RGB const &,float const &,float const &)" (?drawFilledBox@jm@@YAXAEBVRGB@1@AEBM1@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glEnd 외부 기호(참조 위치: "void __cdecl jm::drawFilledBox(class jm::RGB const &,float const &,float const &)" (?drawFilledBox@jm@@YAXAEBVRGB@1@AEBM1@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glLineWidth 외부 기호(참조 위치: "void __cdecl jm::setLineWidth(int const &)" (?setLineWidth@jm@@YAXAEBH@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glPointSize 외부 기호(참조 위치: "void __cdecl jm::drawPoint(class jm::RGB const &,class jm::Vector2<float> const &,float const &)" (?drawPoint@jm@@YAXAEBVRGB@1@AEBV?$Vector2@M@1@AEBM@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glPopMatrix 외부 기호(참조 위치: "void __cdecl jm::endTransformation(void)" (?endTransformation@jm@@YAXXZ) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2001: __imp_glPopMatrix 외부 기호를 확인할 수 없습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glPushMatrix 외부 기호(참조 위치: "void __cdecl jm::beginTransformation(void)" (?beginTransformation@jm@@YAXXZ) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2001: __imp_glPushMatrix 외부 기호를 확인할 수 없습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glRotatef 외부 기호(참조 위치: "void __cdecl jm::rotate(float const &)" (?rotate@jm@@YAXAEBM@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glScalef 외부 기호(참조 위치: "void __cdecl jm::scale(float const &,float const &)" (?scale@jm@@YAXAEBM0@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glTranslatef 외부 기호(참조 위치: "void __cdecl jm::translate(float const &,float const &)" (?translate@jm@@YAXAEBM0@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glVertex2f 외부 기호(참조 위치: "void __cdecl jm::drawFilledBox(class jm::RGB const &,float const &,float const &)" (?drawFilledBox@jm@@YAXAEBVRGB@1@AEBM1@Z) 함수)에서 확인하지 못했습니다.

1>DrawFunctions.obj : error LNK2019: __imp_glVertex2fv 외부 기호(참조 위치: "void __cdecl jm::drawFilledStar(class jm::RGB const &,float const &,float const &)" (?drawFilledStar@jm@@YAXAEBVRGB@1@AEBM1@Z) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2019: __imp_glBlendFunc 외부 기호(참조 위치: "public: class jm::Game2D & __cdecl jm::Game2D::init(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int const &,int const &,bool const &,int const &)" (?init@Game2D@jm@@QEAAAEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH1AEB_N1@Z) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2019: __imp_glClear 외부 기호(참조 위치: "public: void __cdecl jm::Game2D::run(void)" (?run@Game2D@jm@@QEAAXXZ) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2019: __imp_glClearColor 외부 기호(참조 위치: "public: void __cdecl jm::Game2D::run(void)" (?run@Game2D@jm@@QEAAXXZ) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2019: __imp_glEnable 외부 기호(참조 위치: "public: class jm::Game2D & __cdecl jm::Game2D::init(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int const &,int const &,bool const &,int const &)" (?init@Game2D@jm@@QEAAAEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH1AEB_N1@Z) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2019: __imp_glHint 외부 기호(참조 위치: "public: class jm::Game2D & __cdecl jm::Game2D::init(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int const &,int const &,bool const &,int const &)" (?init@Game2D@jm@@QEAAAEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH1AEB_N1@Z) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2019: __imp_glMatrixMode 외부 기호(참조 위치: "public: void __cdecl jm::Game2D::run(void)" (?run@Game2D@jm@@QEAAXXZ) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2019: __imp_glOrtho 외부 기호(참조 위치: "public: class jm::Game2D & __cdecl jm::Game2D::init(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int const &,int const &,bool const &,int const &)" (?init@Game2D@jm@@QEAAAEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH1AEB_N1@Z) 함수)에서 확인하지 못했습니다.

1>Game2D.obj : error LNK2019: __imp_glViewport 외부 기호(참조 위치: "public: class jm::Game2D & __cdecl jm::Game2D::init(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int const &,int const &,bool const &,int const &)" (?init@Game2D@jm@@QEAAAEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH1AEB_N1@Z) 함수)에서 확인하지 못했습니다.

1>C:\Users\김시헌\Desktop\GameDevPracticePackage20181206 (1)\Chapter1\Lecture1\x64\Debug\Lecture1.exe : fatal error LNK1120: 20개의 확인할 수 없는 외부 참조입니다.

이렇게 뜨는데 아직 시작도 안했는데 이렇게 되서 골치가 아프네요 ㅠ

C++ OpenGL oop

답변 1

0

홍정모

안녕하세요? 원래 시작이 제일 까다롭습니다. 문법은 오히려 쉽지요. 뭘 하시든지 이때를 견디셔야 합니다.

2019로 실행시 나오는 에러 메시지를 보니까 opengl을 설치하지 않으신 것 같네요.  vcpkg를 사용하시면 편합니다.

깃허브에서 받은 코드가 왜 강의코드랑 다를까요

0

74

1

Mac vscode 으로 시작하시려는 분들께

0

315

1

마우스 좌우 버튼을 동시에 눌렀을 때의 원의 위치

0

427

1

정답은 어디서볼수있나요?

1

347

2

예제코드

1

491

2

따배C++ 몇 강까지 학습한 후 수강가능 할까요?

1

643

1

15:00 부근 질문 있습니다.

0

421

1

(20.4 참고) 20.4에 해당하는 가이드 페이지가 어디있는지 모르겠습니다.

0

372

1

multimap 질문

0

355

2

도형들의 움직임이 너무 빠릅니다...

0

465

1

vcpkg 설치를 했는데

0

683

2

mutiple bullet 관련 질문 드립니다.

0

481

2

실행 후 화면 꺼짐

0

579

2

예제 파일 실행 시, 에러

1

559

1

아직 못풀어도 괜찮을까요?

0

500

1

코드 열었을 때 오류

1

808

3

코딩공부에 대해서 막히는부분

0

336

1

vcpkg 설치 오류

0

594

2

랜덤값 질문입니다.

0

426

1

vcpkg 다운로드에 문제를 겪고있습니다

1

424

1

if 문에 >= 대신 == 넣으면 작동을 하지 않는 이유가 무엇인가요.

0

283

1

multiple bullet 문제

0

317

1

프로그램 실행 순서 질문

0

274

1

2.2.2 상속으로 깔끔하게 init 메서드 질문

0

228

1