Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 837
Praveen Avatar asked Feb 26 '23 05:02

Praveen


1 Answers

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.

like image 86
karlphillip Avatar answered Mar 07 '23 21:03

karlphillip