Code Blocks Ou Dev C

Virtually any document can be integrated in the Code::Blocks help system, since the help plugin has the ability to launch external programs, if necessary, to view the added documents. Once added a new help file or document, there will be a new entry in the 'Help' menu to open it. When comparing Code::Blocks vs Visual Studio Code, the Slant community recommends Visual Studio Code for most people. In the question 'What are the best C IDEs?' Visual Studio Code is ranked 1st while Code::Blocks is ranked 8th. What are the best cross-platform GUI IDE for web development?

Code blocks ou dev c gameBlocks

Code::Blocks is mostly used opensource IDE due its great features. However it can’t run graphics programs unless you include graphics.h. But we can make it work by adding WinBGIm graphics library manually. That way we can use #include<graphics.h> in Code::Blocls.

Blocks

Code::Blocks is lightweight and easy to use and becoming opensource it is available for Windows, Linux and Mac and is free to download and use. It is best IDE for beginners who wants to learn and C, C++ and FORTRAN or for creating small projects. With addition of WinBGIm in Code::Blocks we can use graphics.h header file then compile and run graphics program in C++ without any errors. Let’s see how to include graphics.h in Code::Blocks.

How to add graphics.h support in Code::Blocks?

  • Download WinBGIm from the download section below. Downloading from other website may not work since official graphics.h has minor error.
  • Extract it.
  • Open info.txt for linker options and more information.
  • Copying MinGW folder to your Code::Blocks installation directory. Default Code::Blocks installation directory is C:Program Files (x86)CodeBlocks. There will be MinGW folder already. Copying new MinGW folder only adds some library (libbgi.a) and header (winbgim.h, graphics.h) files in that directory. To manually add files, copy graphics.h and winbgim.h files in include folder of your compiler directory which is C:Program Files (x86)CodeBlocksMInGW. And copy libbgi.a to libfolder of your compiler directory.
  • Open Code::Blocks. In open Settings >> Compiler >>Linker Settings. Click Add button in link libraries part and browse and select libbgi.a file you just copied to MinGW folder.
  • In right part (i.e. other linker options) paste commands -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
  • Click OK.

If you didn’t see MinGW folder then it might be installed in different location. Check in C:MinGW.

You can also watch my short video about adding graphics.h support in Code::Blocks

Now you can run graphics program in Code::Blocks by including graphics.h header. I have added a sample program clock.cpp with that WinBGIm archive file, you can try compiling it.

Note: If you are getting sstream not found error, then you probably trying to run a .c file program. sstream is c++ header so graphics.h won’t works with c.

You may also like How To Install Dark Themes In CodeBlocks?

Code Blocks Ou Dev C 2017

Download WinBGIm graphics.h library

You can download corrected graphics library files from here – https://drive.google.com/open?id=1joDbQBIsnjCElEpUx4z59oWbiXcwACha

Here is the official link for WinBGIm graphics library – http://www.codecutter.net/tools/winbgim/ but it has small problem with graphics.h file which is have corrected. Line 302 has been replaced by int left=0, int top=0, int right=INT_MAX, int bottom=INT_MAX,.

Code Blocks Ou Dev C 4

To setup OpenGL and GLUT in Code::Blocks there is a good video available in YouTube – How to setup OpenGL and GLUT with CodeBlocks on Windows.

Main

  • Downloads

Quick links

Downloads

There are different ways to download and install Code::Blocks on your computer:

This is the easy way for installing Code::Blocks. Download the setup file, run it on your computer and Code::Blocks will be installed, ready for you to work with it. Can't get any easier than that!
  • Download a nightly build: There are also more recent so-called nightly builds available in the forums. Please note that we consider nightly builds to be stable, usually, unless stated otherwise.
  • Other distributions usually follow provided by the community (big 'Thank you!' for that!). If you want to provide some, make sure to announce in the forums such that we can put it on the official C::B homepage.
If you feel comfortable building applications from source, then this is the recommend way to download Code::Blocks. Downloading the source code and building it yourself puts you in great control and also makes it easier for you to update to newer versions or, even better, create patches for bugs you may find and contributing them back to the community so everyone benefits.
This option is the most flexible of all but requires a little bit more work to setup. It gives you that much more flexibility though because you get access to any bug-fixing we do at the time we do it. No need to wait for the next stable release to benefit from bug-fixes!

Besides Code::Blocks itself, you can compile extra plugins from contributors to extend its functionality.

Thank you for your interest in downloading Code::Blocks!