You need to specify all .c files when compiling and linking (using gcc without any parameters) I'm your case: gcc main.c sonny.c
Look at the error it's not gcc but ld that gives errors. That means there were errors in the linking stage. Whenever you see errors from the linker that means you are missing some library or a c file. It will show you the name of stuff it couldn't find (I'm your case tulis function) so you know which library or file you aren't including.
Обсуждают сегодня