Include an external library in C

后端 未结 5 2098
深忆病人
深忆病人 2020-12-05 03:21

I\'m attempting to use a C library for an opencourseware course from Harvard. The instructor\'s instructions for setting up the external lib can be found here.

I

5条回答
  •  旧时难觅i
    2020-12-05 04:02

    You have to link against the library, how come GCC would know what library you want to use?

    gcc helloWorld.c -lcs50
    

提交回复
热议问题