- 论坛徽章:
- 0
|
编写的pc文件包含下面几个头文件:
EXEC SQL include "malloc.h";
EXEC SQL include "string.h";
EXEC SQL include "atmi.h";
EXEC SQL include sqlca;
EXEC SQL include oraca;
但是编译的时候出现下面的一堆错误
proc -DQLSQLCA def_sqlcode=true iname=srm_opt_adm lines=true parse=full include=/home/linux/def include=/home/tuxedo/tuxedo/include include=/usr/include/linux include=/usr/include include=/home/oracle/product/9.2.0/precomp/public
Pro*C/C++: Release 9.2.0.4.0 - Production on Sat Oct 28 18:44:02 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
System default option values taken from: /home/oracle/product/9.2.0/precomp/admin/pcscfg.cfg
Syntax error at line 118, column 50, file /usr/include/malloc.h:
Error at line 118, column 50 in file /usr/include/malloc.h
extern __malloc_ptr_t malloc __MALLOC_P ((size_t __size)) __attribute_malloc__;
.................................................1
PCC-S-02201, Encountered the symbol "__size" when expecting one of the following
:
, )
The symbol "," was substituted for "__size" to continue.
Syntax error at line 121, column 50, file /usr/include/malloc.h:
Error at line 121, column 50 in file /usr/include/malloc.h
extern __malloc_ptr_t calloc __MALLOC_P ((size_t __nmemb, size_t __size))
.................................................1
PCC-S-02201, Encountered the symbol "__nmemb" when expecting one of the followin
g:
, )
Error at line 53, column 11 in file /usr/include/libio.h
# include <stdarg.h>
..........1
PCC-S-02015, unable to open include file
Syntax error at line 0, column 0, file srm_opt_adm.pc:
Error at line 0, column 0 in file srm_opt_adm.pc
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:
; : an identifier, end-exec, random_terminal
Error at line 0, column 0 in file srm_opt_adm.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: *** [srm_opt_adm.o] Error 1
搞了一个星期了,还是搞不定,使用gcc编译的时候就一点问题没有,使用proc就有问题,在网上找了好多资料也没说明白,请高人帮忙了啊 |
|