On 11 September 2013 07:24, pramod.peddyreddy wrote: > I checked, I am linking the file into executable. > > Linker command: > g++ -rdynamic -g -Wall -m32 -O0 -Wl,--start-group rand_hfile.o <lst of > other files & libs> -Wl,--end-group -ldl -lpthread -o rand_handler.sct > > compiler command: > gcc -m32 -g -Wall < file and other info> You keep leaving out relevant information. What are you not showing with <...> ? How do you use rand.so? Try to reduce the problem to a simple example that demonstrates the problem without any other files or code, and then show the *complete* code and commands used.