0

What do the following compilation errors mean and how can I fix them?

jharvard@appliance (~/Dropbox/pset3/find): make helpers
clang -ggdb3 -O0 -std=c99 -Wall -Werror    helpers.c  -lcs50 -lm -o helpers
/usr/lib/gcc/i686-redhat-linux/4.8.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
jharvard@appliance (~/Dropbox/pset3/find): make find
clang -ggdb3 -O0 -std=c99 -Wall -Werror -o find find.c helpers.c -lcs50 -lm
/tmp/find-v6UjRy.o: In function `main':
/home/jharvard/Dropbox/pset3/find/find.c:55: undefined reference to `sort'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
jharvard@appliance (~/Dropbox/pset3/find):
2
  • The compiler points you on line 55 in your find.c file. Check it.
    – user2477
    Oct 21 '14 at 9:27
  • Thank you. I have to implement a sort function. (how subtle)
    – CiscoVet
    Oct 21 '14 at 21:01

You must log in to answer this question.

Browse other questions tagged .