免费注册 查看新帖 |

Chinaunix

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

[Tuxedo] 求助,关于tuxedo和DB2 连编程序的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-04 10:42 |只看该作者 |倒序浏览
我用的是tuxedo9.1 for linux &DB2 8.2 for linux ,安装完后,TMS_UDB 已经编译成功,并顺利启动,用tuxedo的用户可以连接到 数据库,编写了sqc文件 并且也绑定了bnd文件,成功  。在编译c文件时,出现这样的提示 ,我想问问 编译环境要怎样配置, 望各位指点一下 ,
buildserver -r UDB_XA -f test.c -s TEST -o test
In file included from test.c:14:sqladef.h:27:67: sqlsystm.h: No such file or directory
In file included from test.c:14:
sqladef.h:78: error: syntax error before "sqluint32"
sqladef.h:78: warning: no semicolon at end of struct or union
sqladef.h:81: error: syntax error before '}' token
sqladef.h:89: error: syntax error before "sqluint32"
sqladef.h:89: warning: no semicolon at end of struct or union
sqladef.h:90: warning: data definition has no type or storage class
sqladef.h:97: error: syntax error before "sqluint32"
sqladef.h:97: warning: no semicolon at end of struct or union
sqladef.h:99: error: syntax error before '}' token
sqladef.h:108: error: syntax error before "SQL_API_FN"
sqladef.h:111: warning: data definition has no type or storage class
sqladef.h:113: error: syntax error before "SQL_API_FN"
sqladef.h:116: error: syntax error before "void"
sqladef.h:116: warning: data definition has no type or storage class
sqladef.h:118: error: syntax error before "SQL_API_FN"
sqladef.h:120: error: syntax error before "int"
sqladef.h:123: warning: data definition has no type or storage class
sqladef.h:125: error: syntax error before "SQL_API_FN"
sqladef.h:126: error: syntax error before '*' token
sqladef.h:130: warning: data definition has no type or storage class
sqladef.h:132: error: syntax error before "SQL_API_FN"
sqladef.h:136: warning: data definition has no type or storage class
sqladef.h:138: error: syntax error before "SQL_API_FN"
sqladef.h:142: warning: data definition has no type or storage class
sqladef.h:144: error: syntax error before "SQL_API_FN"
sqladef.h:145: warning: data definition has no type or storage class
sqladef.h:147: error: syntax error before "SQL_API_FN"
sqladef.h:151: warning: data definition has no type or storage class
sqladef.h:153: error: syntax error before "SQL_API_FN"
sqladef.h:158: warning: data definition has no type or storage class
sqladef.h:160: error: syntax error before "SQL_API_FN"
sqladef.h:165: warning: data definition has no type or storage class
sqladef.h:171: error: syntax error before "SQL_API_FN"
sqladef.h:173: warning: data definition has no type or storage class
sqladef.h:175: error: syntax error before "SQL_API_FN"
sqladef.h:176: error: syntax error before "const"
sqladef.h:177: warning: data definition has no type or storage class
sqladef.h:183: error: syntax error before "SQL_API_FN"
sqladef.h:189: warning: data definition has no type or storage class
sqladef.h:191: error: syntax error before "SQL_API_FN"
sqladef.h:194: error: syntax error before "sqluint32"
sqladef.h:197: warning: data definition has no type or storage class
sqladef.h:199: error: syntax error before "SQL_API_FN"
sqladef.h:202: error: syntax error before "sqluint32"
sqladef.h:207: warning: data definition has no type or storage class
sqladef.h:209: error: syntax error before "SQL_API_FN"
sqladef.h:212: error: syntax error before "sqluint32"
sqladef.h:216: warning: data definition has no type or storage class
sqladef.h:218: error: syntax error before "SQL_API_FN"
sqladef.h:221: error: syntax error before "sqluint32"
sqladef.h:227: warning: data definition has no type or storage class
sqladef.h:229: error: syntax error before "SQL_API_FN"
sqladef.h:229: warning: data definition has no type or storage class
sqladef.h:231: error: syntax error before "SQL_API_FN"
sqladef.h:233: warning: data definition has no type or storage class
sqladef.h:235: error: syntax error before "SQL_API_FN"
sqladef.h:237: warning: data definition has no type or storage class
test.sqc:10:19: sqlca.h: No such file or directory
test.sqc: In function `TEST':
test.sqc:24: error: incompatible types in assignment
test.sqc:27: error: storage size of 'sql_setdlist' isn't known
test.sqc:27: error: storage size of 'sql_setdlist' isn't known
test.sqc:26: error: invalid use of undefined type `struct sqlca'
test.sqc:28: error: invalid use of undefined type `struct sqlca'
test.sqc:28: error: `cahr' undeclared (first use in this function)
test.sqc:28: error: (Each undeclared identifier is reported only once
test.sqc:28: error: for each function it appears in.)
test.sqc:28: error: syntax error before ')' token
test.sqc:29: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
test.sqc:29: error: too many arguments to function `strcpy'
test.sqc:32: error: `TPSUSSESS' undeclared (first use in this function)
test.sqc: At top level:
test.sqc:11: error: storage size of `sqlca' isn't known
CMDTUX_CAT:1832: ERROR: can't execute cc    -I$TUXDIR/include -o test BS-6df4.c  -L${TUXDIR}/lib test.c  -ltux -lbuft  -L /home/db2inst1/sqllib/lib -ldb2 -lfml -lfml32 -lengine -ldl -lpthread /usr/lib/libcrypt.a
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP