Press this website to match good, which day come to make up their own configuration process
How to configure OpenGL with CodeBlocks in Ubuntu
Press this website to match good, which day come to make up their own configuration process
#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
Open the codeblocks create the console program, and then in the project to build the options – would add three static link library glut32 Settings. The lib, libopengl32. A, as well as libglu32. A, their paths in the lib folder of the compiler.
1. Put Glut. h in F:\Program Files\ Codeblocks \ MingW \ Include \GL
2. Put libglut32.a in F:\Program Files\CodeBlocks\MinGW\lib
3. Place glut32. DLL in C:\Windows\System32 for 32-bit OS and C:\Windows\ Syswow64 for 64-bit OS
Then create a GLUT project
Then specify the GLUT location (this is just my location, notice your installation directory).
Online other people’s tutorials tutorials may be so far, but I have the following problems
You should start the code with a #include< windows.h> OK, but it looks like it’s going to be above the sentence GLUT
The last problem is an error that says “because msvcr70.dll……….. cannot be found” C:\Windows\System32 or C:\Windows\SysWOW64. These two directories should be the difference between 32-bit and 64-bit systems
Problem description:
Recently, I reinstalled Codeblocks, and found that after I entered it, an environment error window always pops up in the lower right corner, indicating that the compiler cannot be found, as shown in the figure:
Here’s the solution:
First is the best one to the address of the official download codeblocks:
http://www.codeblocks.org/downloads/26 – – – note!!!!!!!!!!
here’s the crux of the matter! Make sure you download the MinGW version (the fourth in the figure) :
. After you download and install the MinGW option, you will see the
Once you open Codeblocks after installation, there will be no pop-up boxes!
There’s always a safe bet:
If the previous prompt is also displayed after opening, it may be in Settings -> because you changed the path in Settings compiler. compiler-> Toolchain executables changes the path (can auto-detect) to do the job: