To run programs of computer graphics in Dev-C++ you first need to configure OpenGL in it. To do so follow these steps:
Watch this video:
- Download Dev-C++ 5.4.1 from here. Download
- Download glutming.zip from here. Download
- Extract the files and install Dev-C++ 5.4.1 from the setup file you just downloaded .
- Copy glut.h from glutming-->include-->GL-->glut.h
- Paste it into C:\program files\Dev-Cpp\ming32\include\GL
- Now copy libglut32.a from glutming-->lin-->libglut32.a
- Paste it into C:\program files\devcpp\Dev-Cpp\mingGW32\lib
- Copy glut32.dll from glutming folder
- Paste it into C:\Windows\SysWOW64
- Now launch Dev-C++
- Go to Tools-->Compiler Options
- Tick "Add following commands when calling compiler".
- Write --lglu32 -lglut32 -lopengl32 in text area.
Watch this video:
No comments:
Post a Comment