The problem
Functions such as glutSolidCube() are used in Win32 to flash back without reporting an error.
To solve
GlutSolidCube, GlutSolidSphere and other functions will first check whether GLUT is initialized, and exit the program if GLUT is not initialized.
Therefore, put the following code in WinMain() :
int argc = 0;
char *argv[10] = {};
glutInit(&argc, argv);
Can solve
Read More:
- C language — to solve the problem of program flashback when programming (in VS)
- Solution of vs program flashback problem
- Two lines of code to solve your vs flashback problem
- Flashback problem of output window of visual studio 2017 console program
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- How to Solve MacOS Big Sur MySQL workbench flashback problem
- A strange problem in compiling OpenGL program
- The calling program in Linux calls the wrong Error opening terminal: unknown.
- This program cannot be started because vcruntime140 is missing from your computer_ 1.dll。 Try to install the program again to solve the problem.
- Solve the problem of visual studio console flashback
- About the problem of calling tools library by running Python program under Mac OS X, modulenotfoundererror: no module named ‘tools‘
- Several reasons of program flashback crash
- Some solutions to the problem of windows flashback after vs running
- Solve the problem of “A TimThumb error has occured” in the WordPress program
- Python – get the information of calling function from called function
- [OpenGL] cannot start this program because the computer is missing glut32.dll. Try to re install the program to fix this problem. …
- Solution of command line window flashback when visual studio runs C + + program
- To solve the problem of C # calling excel interface error, prompt: the COM object of Microsoft. Office. Interop. Excel. Applicationclass is forcibly converted to the interface type “Microsoft. Offi”
- Error: Exception was raised when calling per-thread-terminate function in extension lrwreplaymain.dl
- A solution to the problem of “straight ‘\ 357’ in program” when compiling GCC