- 论坛徽章:
- 0
|
小弟我是用不惯cc的。写了一个proc程序,编译成了.c的文件,没有问题
再用cc一编,考,报了一大堆,如下:
"1.pc", line 3.1: 1506-166 (S) Definition of function include requires parentheses.
"1.pc", line 3.9: 1506-276 (S) Syntax error: possible missing '{'?
"1.pc", line 33.16: 1506-056 (S) Break statement cannot be placed outside a while, do, for, or switch statement.
"1.pc", line 44.9: 1506-057 (S) Continue cannot be placed outside a while, do, or for statement.
"1.pc", line 45.9: 1506-045 (S) Undeclared identifier notfound.
"1.pc", line 51.1: 1506-505 (S) Type "struct sqlca" of identifier "sqlca" was incomplete at the end of its scope.
我想我的make应该没有写错的,如下
rm 1
rm 1.o
rm 1.c
cc -I. -I/oracle/product/8.1.5/precomp/public -I/oracle/product/8.1.5/rdbms/public -I/oracle/product/8.1.5/network/public -c 1.c
cc -o 1 1.o -L/oracle/product/8.1.5/lib/ -lclntsh -lcurses
rm 1.o
rm 1.c
使用的是 C for AIX Compiler, Version 5;AIX Version 4
小程序能编过
想请教:
1,我怎么去获得错误信息的原因解释
2,上述错误为何原因
谢谢您的指点 |
|