When I did all this, the program compiled perfectly (no redefinition or undefined reference errors). /rebates/&252fwinbgim-devpak. I read a little more and found out that I needed some linker libs for this to work, right here Because this page says how to do it in Dev, I just had to find how to do it in Eclipse. I've copied graphics.h and winbgim.h to include directory of MinGW, and lbbgi.a to lib. The winbgim library allows you to use BGI graphics routines and simple mouse support for Windows applications that you write with CS1300s mingw32 gnu C++ compiler or with the Borland C++ compiler (version 5.02). Now I'm trying to make a program using graphics.h. Anyway, I just kept working in eclipse, very happy. Copy and paste libbgi.a file in the lib folder of Code:Blocks. Path: C:Program Files (x86)CodeBlocksMinGWinclude. WinBGIm is installed as part of Quincy 2005 (a simple C/C++ IDE for MingW) and Codeblocks EDU-Portable (Codeblocks-EP, an educational distribution of the Code. Before that, I used Bloodshed Dev-C++ but, because of the extremely new compiler, it didn't work anymore. Copy and Paste the graphics.h and winbgim.h files into include folder of Code::Blocks directory. I downloaded Eclipse CDT about two months ago (maybe less) with the latest MinGW compiler. So I looked below in the code into another functions and just changed the former right to top. I'm trying to create a program using graphics.h (from here ), which has 3 files: graphics.h, winbgim.h and lbbgi.a, in Eclipse CDT.įirst of all, if my computer doesn't magically change code when downloads it (that I don't think so), graphics.h has an error in function printimage (line 302), when declarates two int variables with the same name: right.
0 Comments
Leave a Reply. |