我的系统是red flag linux 6.0 sp3
在编译以下程序中出现的错误是
使用Makefile编译.pc文件出错,但把.pc文件中的头文件#include<curses.h>去掉即可生成.c文件
然后再gcc编译.c文件即可生成目标输出文件,并且可以正常运行
不知道是不是pro*c和curses之间的问题,还是我环境设置的有问题
具体程序见下:
...全文
1323打赏收藏
pro*c下的curses编译问题
我的系统是red flag linux 6.0 sp3 在编译以下程序中出现的错误是 使用Makefile编译.pc文件出错,但把.pc文件中的头文件#include去掉即可生成.c文件 然后再gcc编译.c文件即可生成目标输出文件,并且可以正常运行 不知道是不是pro*c和curses之间的问题,还是我环境设置的有问题 具体程序见下:
Pro*C/C++: Release 10.2.0.1.0 - Production on Wed May 30 12:34:42 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/product/10.2.0/client_1/precomp/admin/pcscfg.cfg
Syntax error at line 381, column 2, file /usr/include/curses.h:
Error at line 381, column 2 in file /usr/include/curses.h
bool _notimeout; /* no time out on function-key entry? */
.1
PCC-S-02201, Encountered the symbol "_Bool" when expecting one of the following:
Syntax error at line 0, column 0, file demo4.pc:
Error at line 0, column 0 in file demo4.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 demo4.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: *** [demo4] 错误 1
*******************************************************