danginsburg/opengles3-book

Beginner here! Help with linker issues for example from opengles3-book Chapter 2 - Hello_Triangle

nikhilbagul opened this issue · 0 comments

Hey guys, I am very new to OpenGL development. I am learning to develop Open GL ES 3 apps following your book. Here is current environment spec:

Emulator: Mali_OpenGL_ES_Emulator-v3.0.2.g694a9-Windows-64bit
IDE: Visual Studio 2015 Win64
Cmake version: 3.11.2
OS: Windows 10

I am referring the Chapter 16 for building it on Windows and for Visual Studio
After a lot of beating my head around and digging, I managed to bring down the number of Linker issues that I was getting. Currently I am stuck on 2 linker issues that I unable to resolved or get any help.

image

Error LNK1120 2 unresolved externals Hello_Triangle C:\Users\nikhil.bagul\Documents\OpenGLES\Projects\opengles3-book\Chapter_2\Hello_Triangle\VisualStudioSolution64\Release\Hello_Triangle.exe 1

Error LNK2019 unresolved external symbol main referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@yahxz) Hello_Triangle C:\Users\nikhil.bagul\Documents\OpenGLES\Projects\opengles3-book\Chapter_2\Hello_Triangle\VisualStudioSolution64\MSVCRT.lib(exe_main.obj) 1

Error LNK2019 unresolved external symbol WinCreate referenced in function esCreateWindow Hello_Triangle C:\Users\nikhil.bagul\Documents\OpenGLES\Projects\opengles3-book\Chapter_2\Hello_Triangle\VisualStudioSolution64\esUtil.obj 1

Any help is much appreciated.
Thanks!