如何在Mac上添加graphics.h库? [英] How can I add graphics.h library on my mac?
问题描述
我想使用C程序绘制一个矩形.所以我试图使用graphics.h
标头.但是GCC编译器给我一个错误,指出找不到该库.
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.
推荐答案
graphics.h
is a header that define functions for libbgi (Borland Graphics Interface)
除非您在Mac上安装了某种Borland编译器(如果可能的话),我认为您最终将不得不使用其他图形库,或者在Mac上安装Windows/Linux虚拟机,然后在其中运行/编译您的代码.
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.
这篇关于如何在Mac上添加graphics.h库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!