我正在从哈佛扩展学校 cs50.tv 学习这门课程,在课程中他们使用的是他们制作的名为 cs50 的库,在这个链接上可以下载
https://manual.cs50.net/CS50_Library#Mac_OS
我下载了 zip 文件并解压缩,然后打开终端并 cd 到库目录,但每次我都按照手册中的步骤进行操作。
在我执行此命令后立即 gcc -c -ggdb -std=c99 cs50.c -o cs50.o
我在终端中收到此错误
cs50.c:15:16: error: gc.h: No such file or directory
cs50.c: In function ‘GetString’:
cs50.c:207: warning: implicit declaration of function ‘GC_FREE’
cs50.c:212: warning: implicit declaration of function ‘GC_REALLOC’
cs50.c:212: warning: initialization makes pointer from integer without a cast
cs50.c:230: warning: implicit declaration of function ‘GC_MALLOC’
cs50.c:230: warning: initialization makes pointer from integer without a cast
如果有人可以提供帮助,我将不胜感激。