The OpenGL Extension Wrangler Library is a simple tool that helps C/C developers initialize extensions and write portable applications. GLEW currently supports a variety of operating systems, including Windows, Linux, Darwin, Irix, and Solaris.
Download required libraries from here
Dev C++ 5.11
It is a tradition to use Turbo C for graphic in C/CPP. But it's also a pain in the neck. Here we are using Code::Blocks IDE, which will ease out our work.
WinBGIm is a Windows C graphics library based on the classic Borland Graphics Interface (originally distributed with Borland’s Turbo Pascal and later with their Turbo C compilers). In addition to the original BGI interface, WinBGIm also provides programmer support for accessing the mouse and for using the graphics window as a C ostream. Download libbgi.a to the lib/ In order to use the WinBGIm subdirectory of the Dev-C directories. Whenever you #include in a program, you must instruct the linker to link in certain libraries. The command to do so from Dev-C is Alt-P. Choose the Parameters tab from the pop-up window and type the following into the Linker area. Sep 19, 2011 It has templates for WinBGIm projects installed and all the necessary libraries pre-installed. In Codeblocks-EP just start File-New-Project-WinBGIm Project. You'll be able to choose a graphics-only project type, or one with an extra console for standard input/output if you wish. Jul 30, 2014 For the Love of Physics - Walter Lewin - May 16, 2011 - Duration: 1:01:26. Lectures by Walter Lewin. They will make you ♥ Physics. Recommended for you. Sep 05, 2017 3. Include graphics.h and winbgim.h. Copy and Paste the graphics.h and winbgim.h files into include folder of Code::Blocks directory. Path: C:Program Files (x86)CodeBlocksMinGWinclude. Include libbgi.a. Copy and paste libbgi.a file in the lib folder of Code:Blocks. Path: C:Program Files (x86)CodeBlocksMinGWlib. Add Link Libraries.
Steps to run graphic code in CodeBlocks
1. Install Code::Blocks
Make sure you have installed Code::Blocks IDE on your machine. If you don't have this IDE or have any issue with compiler download and install it from here. http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01mingw-setup.exe
![Winbgim for dev c++ 5.11 Winbgim for dev c++ 5.11](/uploads/1/2/6/1/126183708/247088720.png)
2. Download the required header files
We need few files to be included in the lib folder of Code::Blocks.Download the files from here https://github.com/SagarGaniga/Graphics-Library
3. Include graphics.h and winbgim.h
Copy and Paste the graphics.h and winbgim.h files into include folder of Code::Blocks directory.
Dev C++ For Windows 10
Path: C:Program Files (x86)CodeBlocksMinGWinclude
4. Include libbgi.a
Copy and paste libbgi.a file in the lib folder of Code:Blocks
Path: C:Program Files (x86)CodeBlocksMinGWlib
5. Add Link Libraries in Linker Setting
- In the Code::Blocks application go to, Settings > Compiler
- In the Global Compiler setting, click on the Linker Settings
- In Link Libraries, Add and browse to C:Program Files (x86)CodeBlocksMinGWlib and select libbgi.a.
- Paste this in the Other Linker Option tab of Linker Settings (i.e. on the right-hand side)-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
- Save the setting and restart the application
To test the setting copy paste any computer graphics code from
Winbgim For Dev C++ Download
Hi pals,
I am a Newbie in C++ Programming field. I plan to add graphics.h header class in
Dev -C++ Version 4.9.9.2 from Bloodshed which is come along with Borland Compiler.
I follow the Steps in URL : http://www.uniqueness-template.com/devcpp/#step2
I am a Newbie in C++ Programming field. I plan to add graphics.h header class in
Dev -C++ Version 4.9.9.2 from Bloodshed which is come along with Borland Compiler.
I follow the Steps in URL : http://www.uniqueness-template.com/devcpp/#step2
But I Got Error in the Sample code which test the Working , Please Help me
to get away from this problem . I am waiting to hear from you.
to get away from this problem . I am waiting to hear from you.
Regards
Anes P.A:'(
Anes P.A:'(
- 13 Contributors
- forum 14 Replies
- 19,257 Views
- 5 Years Discussion Span
- commentLatest Postby leonesaLatest Post
WaltP2,905
You can't. graphics.h is not compatible with Dev-C++