Am following video from lecture Week1 Monday (45min), and using CS50 Library installed on OSX Mavericks (the appliance isn't an option as it's a work machine), but get this response to
cc hello-2.c -o hello-2 Undefined symbols for architecture x86_64: "_GetString", referenced from: _main in hello-2-3c2ca7.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [hello-2] Error 1
make hello and
make hello-1 both work without issue and get correct response from
Searches suggest it's a 'linker' issue but both includes files
stdio.h seem to be linked correctly because if either reference is deleted an error occurs.
string GetString(void) is in
cs50.h. Machine is 64bit.