用 iname=procqury1.pc oname=qu1.c成功后成qu1.c qu1.c的内容如下
more qu1.c
用bash-2.05$ CC -f qu1.c -o qu1 -L /oracle/app/oracle/product/9.2.0/lib32
CC: Warning: Option -f passed to ld, if ld is invoked, ignored otherwise
"qu1.c", line 282: Error: Formal argument 1 of type char* in call to std::strcpy(char*, const char*) is being passed unsigned char*.
"qu1.c", line 283: Error: Formal argument 1 of type const char* in call to std::strlen(const char*) is being passed unsigned char*.
"qu1.c", line 284: Error: Formal argument 1 of type char* in call to std::strcpy(char*, const char*) is being passed unsigned char*.
"qu1.c", line 285: Error: Formal argument 1 of type const char* in call to std::strlen(const char*) is being passed unsigned char*.
"qu1.c", line 286: Error: Formal argument 1 of type char* in call to std::strcpy(char*, const char*) is being passed unsigned char*.
"qu1.c", line 287: Error: Formal argument 1 of type const char* in call to std::strlen(const char*) is being passed unsigned char*.
"qu1.c", line 353: Error: Too many arguments in call to "sqlcxt()".
"qu1.c", line 382: Warning: String literal converted to char* in assignment.
"qu1.c", line 432: Error: Too many arguments in call to "sqlcxt()".
"qu1.c", line 442: Error: salay is not defined.
"qu1.c", line 467: Error: Too many arguments in call to "sqlcxt()".
"qu1.c", line 498: Error: Too many arguments in call to "sqlcxt()".
11 Error(s) and 1 Warning(s) detected.
CC编译时报错:
CC: Warning: Option -f passed to ld, if ld is invoked, ignored otherwise
"qu1.c", line 382: Warning: String literal converted to char* in assignment.
1 Warning(s) detected.
ld: fatal: option -f and building a dynamic executable are incompatible
ld: fatal: Flags processing errors