I'm new to C, just came over from the darkside of Java. I'm writing a List.c file that serves as a doubly linked list for a client module. Only problem is that List.c only compiles when it has a main function. I dont need this and when I remove the main function it gives me this error
Otherwise it compiles just fine with an empty main function in place.
> cc List.c
Undefined first referenced
symbol in file
ld: fatal: Symbol referencing errors. No output written to a.out