数据平台是AIX 5.2L + Oracle 9.2.0.1 + GCC 3.0.1, 现在的情况是,已经把ProC程序预处理成了.c程序,然后生成了.o目标文件,可就是最后一步一直在ld报错,以下是屏幕打印:##########################################################
$ ls
s.o
$ rm s.o       
$ cp ../s.pc .
$ ls
s.pc

$ proc iname=s.pcPro*C/C++: Release 9.2.0.1.0 - Production on Wed Aug 4 09:59:44 2004Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.System default option values taken from: /db/home0/app/oracle/product/9.2.0/precomp/admin/pcscfg.cfg$ 
$ ls
s.c    s.lis  s.pc
$                                          
$ gcc -I$ORACLE_HOME/precomp/public -c  s.c

$ ls
s.c    s.lis  s.o    s.pc

$  gcc -L$ORACLE_HOME/lib -lclntsh -o s s.o
ld: 0711-317 ERROR: Undefined symbol: .sqlglm
ld: 0711-317 ERROR: Undefined symbol: .sqlorat
ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status

$ ls
s.c    s.lis  s.o    s.pc

$ gcc -L$ORACLE_HOME/lib -lclntsh -bloadmap -s s s.o
gcc: s: A file or directory in the path name does not exist.

$  gcc -L$ORACLE_HOME/lib -lclntsh -bnoquiet -s s s.o
gcc: s: A file or directory in the path name does not exist.

$ gcc -L$ORACLE_HOME/lib -lclntsh -bloadmap -bnoquiet -o s s.o
ld: 0706-005 Cannot find or open file: libgcc.a
        ld:open(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
        ld:open(): A file or directory in the path name does not exist.

#########################################################同样的帖子在别的论坛也发了,看看哪个论坛高手多一点。