How can I add graphics.h library on my mac?

14,133

Solution 1

graphics.h is a header that define functions for libbgi (Borland Graphics Interface)

Unless you have a Borland compiler of some sort installed on your Mac (if that's even possible), I think you'll end up having to use other graphic libraries, or install a Windows/Linux Virtual Machine on your Mac and then run/compile your code inside it.

Solution 2

graphics.h is not a standard C header and is probably a part of a custom library. If you can track down that original library and provide more info, we can probably help you get it set up.

Share:
14,133
Praveen
Author by

Praveen

I am doing my M.S in Electrical and Computer Engineering at Carnegie Mellon University. I like to build good, immersive products and assist users with the help of technology.

Updated on June 04, 2022

Comments

  • Praveen
    Praveen almost 2 years

    I want to draw a rectangle using a C program. So I was trying to use the graphics.h header. But the GCC compiler gave me a error saying that the library could not be found.

    I'll appreciate if some one can help me with this.

  • Praveen
    Praveen over 13 years
    thanks. where should i start looking for that? I've been trying to find the gcc libraries but with no success.