I have already included string.h, I've even tried defining GNU
but I still get the same warning/error when I compile it.
below is not really code, its the warning/error I get
bravo:~/60-141/Assignment/Assignment3>cc assign3.c "assign3.c", line 94: warning: implicit function declaration: strndup Undefined first referenced symbol in file strndup assign3.o ld: fatal: Symbol referencing errors. No output written to a.out
This is my include
I tried it with and without
it still doesnt work
but when I compile it with gcc from ubuntu. It works like a charm. no problem whatsoever.
Can anyone tell me how to fix this problem?(I think the compiler that had the problem is gcc, its the server from university of WIndsor)
Edited 5 Years Ago by efronefron: n/a