免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2483 | 回复: 3
打印 上一主题 下一主题

sybase的ESQL预编译器编译后的文件是否能够用C++编译器编译 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-06-10 07:40 |只看该作者 |倒序浏览
我在linux用sybase的CPRE进行esql预文件编译,老是报下列错误
`sh sybopts.sh compile`  -o exam1 -g -DUNIX -I../common -I. -I/u01/app/oracle/product/8.1.7/precomp/public -I${SYBASE}/${SYBASE_OCS}/include `sh sybopts.sh ocsbase`/include/sybesql.c exam1.c `sh sybopts.sh ct cs comlibs` `sh sybopts.sh syslibs`
In file included from /opt/sybase/OCS-12_5/include/sybesql.c:17:
/opt/sybase/OCS-12_5/include/sybhesql.h:201: parse error before `1'
/opt/sybase/OCS-12_5/include/sybhesql.h:201: warning: no semicolon at end of struct or union
/opt/sybase/OCS-12_5/include/sybhesql.h:205: parse error before `}'
/opt/sybase/OCS-12_5/include/sybhesql.h:205: warning: data definition has no type or storage class
/opt/sybase/OCS-12_5/include/sybhesql.h:226: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:245: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:248: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:252: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:256: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:259: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:263: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:267: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:270: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:273: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:278: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:282: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:286: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:290: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:293: parse error before `*'
/opt/sybase/OCS-12_5/include/sybhesql.h:296: parse error before `*'
难道是cpre预编译后不能使用g++编译吗?

论坛徽章:
0
2 [报告]
发表于 2004-06-10 07:54 |只看该作者

sybase的ESQL预编译器编译后的文件是否能够用C++编译器编译

cpre 只是把ESQLC编译成C源文件。应该是可以的。

比如你可以手工 g++ example.c -c -I$(INC) 看看

另外可以使用ct 函数库,也许更直观一些。

论坛徽章:
0
3 [报告]
发表于 2004-06-10 08:01 |只看该作者

sybase的ESQL预编译器编译后的文件是否能够用C++编译器编译

但是为什么我一使用g++编译就提示他自己的文件sybhesql.h错误呢
我远在在proc中使用STL,如果不行将要改很多啊

论坛徽章:
0
4 [报告]
发表于 2004-06-10 12:59 |只看该作者

sybase的ESQL预编译器编译后的文件是否能够用C++编译器编译

记得好像是因为你没有INCLUDE SYBASE 目录编译导致问题。再试试看。
不敢确认。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP