1> 02.obj: Error lnk2019: external symbol that cannot be parsed _ glugetstring @ 4, which is referenced in function _ main
1> 02.obj: Error lnk2019: external symbol that cannot be parsed _ imp _ glgetstring @ 4, which is referenced in function _ main
1> 02.obj: Error lnk2019: an external symbol that cannot be parsed _ glucreatewindow @ 4. This symbol is referenced in function _ main.
1> 02.obj: Error lnk2019: an external symbol that cannot be parsed _ gluinitwindowposition @ 8, which is referenced in function _ main.
1> 02.obj: Error lnk2019: an external symbol that cannot be parsed _ gluinitwindowsize @ 8, which is referenced in function _ main.
1> 02.obj: Error lnk2019: an external symbol that cannot be parsed _ gluinitdisplaymode @ 4, which is referenced in function _ main.
1> 02.obj: Error lnk2019: external symbol that cannot be parsed _ gluinit @ 8, which is referenced in function _ main
Error cause: the OpenGL library file (. Lib) is not included in the project.
Correction Method:
- Use # pragma comment (Lib, "opengl32.lib"), # pragma comment (Lib, "glu32.lib"), # pragma comment (Lib, "glu32.lib") to load the file.
- Click "project"> "setting", select "Link", and add "opengl32.lib" to "object \ library module ".
Separated by spaces or semicolons (;)