shv@dpd20:~/quad/t106905> icc -V
Intel C Intel 64 Compiler XE for applications running on Intel 64, Version 126.96.36.1999 Build 20120612
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
shv@dpd20:~/quad/t106905> icc -vec-report0 -O -fPIC -fno-strict-aliasing -Wall -w1 -Wcheck -c -o object.o object.c
shv@dpd20:~/quad/t106905> icc -o libobject.so object.o -shared -static-intel
shv@dpd20:~/quad/t106905> gcc -o main -L. -lobject main.c
shv@dpd20:~/quad/t106905> ./main sukruth
As we can see i am getting the expected output. The only thing i did extra from the steps you have mentioned is to just include the libobject.so library :- "export LD_LIBRARY_PATH=/home/cmplr/usr4/shv/quad/t106905:$LD_LIBRARY_PATH". where t106905 is the folder which contain header.h, object.c, main.c and libobject.so. Please feel free to let me know if i had missed some steps.