User forums > Using Code::Blocks
Work with winBGIm in C::B
scarphin:
There are no spaces between 'include's in the 2nd and 3rd lines below.
--- Code: ---#include <iostream>
#include<graphics.h>
#include<string>
--- End code ---
stahta01:
--- Quote from: scarphin on January 22, 2014, 05:09:22 am ---There are no spaces between 'include's in the 2nd and 3rd lines below.
--- Code: ---#include <iostream>
#include<graphics.h>
#include<string>
--- End code ---
--- End quote ---
That would only cause a compiler error and normally never even causes that.
I am guessing he has a bad library but, the person seems to NOT understand the question about the library version and source.
Or Compiler version and source.
Tim S.
herosz:
--- Quote from: stahta01 on January 22, 2014, 10:22:08 am ---I am guessing he has a bad library but, the person seems to NOT understand the question about the library version and source.
Or Compiler version and source.
Tim S.
--- End quote ---
let's try again:
I downloaded New C:B release 13.12 from http://sourceforge.net/projects/codeblocks/
codeblocks-13.12mingw-setup-TDM-GCC-481.exe << GCC version 4.8.1
Borland BGI Graphics emulation for the MingW (GCC port) Compiler from http://winbgim.codecutter.org/
Library built with MingW 5.0.3 and GCC 3.4.5
Copy headers winbgim.h, and graphics.h in %Program Files%\CodeBlocks\MingW\include directory.
Copy library libbgi.a in %Program Files%\CodeBlocks\MingW\lib directory.
Add Settings >> Compiler >>linker settings
>> link libraries: libbgi.a
>> other linkers options: -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
I don't modify anything else, my library and my compiller its from original package.
stahta01:
Looks to be a bad Library and Compiler Combination.
But, that makes sense the ABI has changed at least twice since 3.4.5 MinGW GCC.
Edit2: ABI Application Binary Interface.
When trying to run the project I just a crash code of C.....05 which is STATUS_ACCESS_VIOLATION when using the Downloaded bgi lib.
Tim S.
stahta01:
I believe that I have uploaded a good Static Lib to here https://github.com/stahta01/windows-games/blob/master/WinBGIm/lib/libbgi.a
Note: I complied it with MinGW GCC TDM 4.8 SJLJ
Click on "Raw" button to download it.
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version