Author Topic: use of graphics.h winbgim.h and libbgi.a  (Read 218 times)

Offline estrouven

  • Single posting newcomer
  • *
  • Posts: 1
use of graphics.h winbgim.h and libbgi.a
« 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6459
    • My Best Post
Re: use of graphics.h winbgim.h and libbgi.a
« Reply #1 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

Tim S.
« Last Edit: January 11, 2019, 07:18:33 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org