用 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
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
解决方案 »
- 如何把oracle数据库里查到的数据,转成GBK编码在jsp网页上显示
- 一个关于oracle游标动态字段问题,求解
- 日期查询的优化
- 安装ORACLE出错,求transaction_processing.dfj文件
- 公司一道数据库笔试题?
- 初学oracle,有个挺简单的存储过程(书上的例子),麻烦朋友们帮忙给说道说道,谢谢!!!
- 超初级问题:用windows系统下的oracle9i怎么新建一个数据库
- 通过软盘,用程序实现从一台电脑中某个表中导出部份记录到另一台电脑对应的表中,什么实现
- 新手提问,我安装好oracle817客户端后,怎样配置net assistant 连接到oracle服务器?
- oracle 中blob查询问题
- 为什么还没有提示我输入变量的值查询结果就出来了
- oracle 安装问题 出现 stop:0x00000050怎么回事??
参数个数不对的都有。赫赫。
应该char*的,用了unsigned char*,赫赫。
需要cast.