Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: estrouven on January 11, 2019, 04:35:25 pm

Title: use of graphics.h winbgim.h and libbgi.a
Post by: estrouven on January 11, 2019, 04:35:25 pm
I am using BCC32 for compiling and want to use graphics code.
Compiling a programme which includes graphics.h results in a  fatal error as below:

Error: 'C:\BORLAND\BCC55\LIB\WIN32C\RELEASE\PSDK\LIBBGI.A' contains invalid OMF record, type 0x21 (possibly COFF)
Process terminated with status 2 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

Is there any workaround or simple solution to solve this problem?
Title: Re: use of graphics.h winbgim.h and libbgi.a
Post by: stahta01 on January 11, 2019, 07:14:59 pm
Likely the correct solution is not to use libraries that does not work with the BCC32 compiler.
Edit: Or change your compiler to one that works with the library.

Please read this website rules: http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)

Tim S.