I am a new-bie into Ubuntu and when I try to run the following Program on Ubuntu using GCC: #include<stdio.h> #include<string.h> Code: int main() { char *name1 = "Creative"; char *name2 = "Creative123"; int op = strnicmp(name1,name2,6); printf("Hi Creativel!\n The output is: %d",op); return; } i get the following error: Code: /tmp/ccydQH9l.o: In function `main': CProgram.c.text+0x31): undefined reference to `strnicmp' collect2: ld returned 1 exit status I know this is a very trivial program in C, but still I am unable to find any erros in this. Will be great if someone could help me with this.