The configuration process: https://blog.csdn.net/sophiale07/article/details/44965875
Undefined reference to ‘_XX OpenGL function name ‘.
Solution:
Add before include precompile directives that include OpenGL
Undefined reference to ‘_XX OpenGL function name ‘.
Solution:
Add before include precompile directives that include OpenGL
#define _STDCALL_SUPPORTED
If it still doesn’t work, add
#define _M_IX86
#define GLUT_DISABLE_ATEXIT_HACK
There may also be warnings, which can be removed by the following code:
#define GLUT_NO_WARNING_DISABLE
Modify the compilation and Makefile methods for undefined reference errors.
https://blog.csdn.net/huys03/article/details/2260949
Read More:
- Summary of problems encountered by CodeBlocks + OpenGL
- Problems encountered in vs2015 configuration using OpenGL environment
- OpenGL Usage Summary (including problems encountered and solutions)
- CodeBlocks OpenGL configuration process
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- Solutions to some problems encountered in programming with vs2017
- OpenGL configuration under CodeBlocks in Ubuntu
- Summary of problems encountered in compiling opengl code
- OpenGL learning notes: Problems and Solutions
- Some configuration problems of OpenGL in VS2008
- OpenGL development environment configuration [vs2017] + common problems
- Solutions to problems encountered when installing isc-dhcp-server on debian9.6
- Problems encountered in running OpenGL
- Record the problems encountered in OpenGL learning
- Problems encountered in configuring OpenGL development environment in vs2015
- Small problems encountered in compiling OpenGL under VS2010
- Problems in compiling VTK with cmake: solutions to error configuration process, project files may be invalid
- Problems encountered in PCL configuration environment
- Creating Server TCP listening socket 127.0.0.1:6379: bind: No error。。。 Solutions to problems encountered in startup
- Write about the problems and solutions when configuring OpenGL in vs2015