0

I'd like to use (with attribution) in my "load" section a hash function that I found online. When I try to compile it with Make, I get this:

jharvard@appliance (~/Dropbox/pset6): make loadcbook
clang -ggdb3 -O0 -Qunused-arguments -std=c99 -Wall -Werror    loadcbook.c  -lcs50 -lm -o loadcbook
/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)

I have no idea what this means and would appreciate any help.

Thank you.

1 Answer 1

1

That program that you're trying to compile doesn't have a main function.

1
  • You're right. Now it has a main & compiles. Thank you. Commented Nov 18, 2014 at 15:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .