求助,关于tuxedo和DB2 连编程序的问题

发布于 2022-07-20 03:27:33 字数 5698 浏览 6 评论 0

我用的是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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文