Hi guys,
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
Code:
> cc List.c
Undefined first referenced
symbol in file
main /opt/SUNWspro/WS6U2/lib/crt1.o
ld: fatal: Symbol referencing errors. No output written to a.out
Otherwise it compiles just fine with an empty main function in place.