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

六月ゝ 毕业季﹏ 提交于 2020-01-03 17:15:17

问题


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.


回答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.




回答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.



来源:https://stackoverflow.com/questions/4881649/how-can-i-add-graphics-h-library-on-my-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!