免费注册 查看新帖 |

ChinaUnix.net

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3385 | 回复: 0

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

论坛徽章:
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

基于案例的 SQL 优化实战训练营

讲师:中电福富特级专家梁敬彬,参与本次课程培训,你将收获:
1. 能编写出较为高效的 SQL;
2. 能解决70%以上的数据库常见优化问题;
3. 能得到老师提供的高效的相关工具和解决方案;
4. 能举一反三,收获不仅仅是 SQL 优化。
现在购票享受8.8折优惠!
----------------------------------------
优惠时间:2019年3月20日前

大会官网>>
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP