Pro*c exec 命令不起作用
Pro*c exec command not working
Error at line 16, column 1 in file glssim.pc
EXEC SQL
1
PCC-S-02201, Encountered the symbol "exec sql begin" when expecting one of the following:
Syntax error at line 0, column 0, file glssim.pc:
Error at line 0, column 0 in file glssim.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 glssim.pc
PCC-F-02102, Fatal error while doing C preprocessing
我认为问题与 exec 库有关,但我需要知道它在哪里以及在哪里添加它。
谢谢你的回复我正在使用proc命令,我解决了这个问题,
通过更改配置文件中 sys_include 库的顺序。
现在我有另一个问题:编译器无法识别函数
例如:int function (void);
内部函数(){
一些代码
}
编译器说遇到了符号{
当期待以下之一时 ;= ([
这是由于在头文件中定义了函数原型,但未定义主体。
然后预编译器等待它们的定义,当它遇到新函数时它会抱怨。
我只是删除了无用的函数原型。而且效果很好
Error at line 16, column 1 in file glssim.pc
EXEC SQL
1
PCC-S-02201, Encountered the symbol "exec sql begin" when expecting one of the following:Syntax error at line 0, column 0, file glssim.pc:
Error at line 0, column 0 in file glssim.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 glssim.pc
PCC-F-02102, Fatal error while doing C preprocessing
我认为问题与 exec 库有关,但我需要知道它在哪里以及在哪里添加它。
谢谢你的回复我正在使用proc命令,我解决了这个问题, 通过更改配置文件中 sys_include 库的顺序。 现在我有另一个问题:编译器无法识别函数
例如:int function (void); 内部函数(){ 一些代码 }
编译器说遇到了符号{ 当期待以下之一时 ;= ([
这是由于在头文件中定义了函数原型,但未定义主体。 然后预编译器等待它们的定义,当它遇到新函数时它会抱怨。 我只是删除了无用的函数原型。而且效果很好