Error Compiling C program

Hi All,

I tried to compile a C program but i am getting error while Linking . it says Undefined reference to ' ' (here it gives a method name which is defined Globally ).

Can any body tell the resaon and remedy for the same . Iam stuck up here .

Thanks

Vivek,
are u using shared libraries?? Make sure that u r linking them with the right libaries. what r the switches u r using while compiling?

Iam compiling using the Following command

cc -o hello hello.c -lpthread

Iam using some of the datastructrues of pthread.h file.

and its givin me Undefined Reference the Global function defined in my Program .

Aby Idea.....

Vivek,

Can you type exactly what the error message is?
It will help me to reply exacly what you want..

Vijay