Adding a header file to Xcode
问题 I'm trying to add a C library to Xcode. I downloaded the library from an online C class, and the zipped file contains two files: cs50.c and cs50.h . I installed these files using the following commands: gcc -c -ggdb -std=c99 cs50.c -o cs50.o ar rcs libcs50.a cs50.o rm -f cs50.o chmod 0644 cs50.h libcs50.a sudo mv cs50.h /usr/include sudo cp libcs50.a /usr/lib When building the project, I get the following error message: Undefined symbols for architecture x86_64: "_GetString", referenced from: