libcs50 icon indicating copy to clipboard operation
libcs50 copied to clipboard

Issue while running on Apple silicon

Open forestpurnell opened this issue 10 months ago • 10 comments

Hello, after an error-free compile and install, the first time I try to compile a program with the libcs50 headers, I get this error:

cc     runoff.c   -o runoff
Undefined symbols for architecture arm64:
  "_get_int", referenced from:
      _main in runoff-d112e1.o
  "_get_string", referenced from:
      _main in runoff-d112e1.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [runoff] Error 1

Is there some reason this wouldn't be able to run on an arm64 mac?

forestpurnell avatar Mar 27 '24 01:03 forestpurnell