Compiling Pro*C program under unix

Hello,

I am trying to compile a Pro*C program under unix:

proc iname=test.pc
works fine
but then I am not able to compile the test.c file :

gcc test.c -o test.o -L $ORACLE_HOME/lib -l clntsh
/usr/bin/ld:
Object file format error in: /u01/app/oracle/product/10.1.0.2.0/lib: read_cur_obj_info: File is not a regular file
collect2: ld returned 1 exit status

I've checked other threads and here is my observation:
my oracle installation does not have the $ORACLE_HOME/precomp/demo directory, so I am not able to check the demo makefile.
I guess my problem is with linking the required libraries.
Please help me figure out the problem.
thanks...

What is the text of your test.pc?