0
MyMac@Macbook Cs50 % make adab
cc     adab.c   -o adab
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [adab] Error 1

I got this error because my file adab.c was empty, i wrote some simple code and saved the file, then executed "make adab".

MyMac@Macbook Cs50 % make adab 
cc adab.c  -o adab 
MyMac@Macbook Cs50 %

Hope this is helpful for beginners like me :)

k_sw
  • 1
  • 1

0 Answers0