[转帖]AIX5.3上用GCC编译simpserv.c出错 [_MQ, Tuxedo及OLTP讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MQ, Tuxedo及OLTP讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4086 | 回复: 0   主题: [转帖]AIX5.3上用GCC编译simpserv.c出错 [        下一篇 
mingrui.li
注册用户
等级:少校
经验:1356
发帖:95
精华:11
注册:2013-1-4
状态:离线
发送短消息息给mingrui.li 加好友    发送短消息息给mingrui.li 发消息
发表于: IP:您无权察看 2013-1-9 9:24:23 | [全部帖] [楼主帖] 楼主

这里用的simpserv.c是大家都熟悉的simpapp中的那个例子.在Windows平台下用微软的VC++6.0中的编译器编译通过,但在AIX上却出了点乱子:

$gcc -Wall simpserv.c -o simpserv -I/home/ tuxedo/tux81/tuxe

do8.1/include

simpserv.c:32: warning: return type defaults to 'int'

/home/tuxedo/tux81/tuxedo8.1/include/tmenv.h:48: warning: 'h_tmenv' defined but not used

/home/tuxedo/tux81/tuxedo8.1/include/atmi.h:34: warning: 'h_atmi' defined but not used

/home/tuxedo/tux81/tuxedo8.1/include/fml32.h:23: warning: 'h_fml32' defined but not used

/home/tuxedo/tux81/tuxedo8.1/include/userlog.h:20: warning: 'h_userlog' defined but not used

ld: 0711-317 ERROR: Undefined symbol: .main

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

collect2: ld returned 8 exit status

tux.env内容:

$more tux.env

export TUXDIR=/home/tuxedo/tux81/tuxedo8.1;

export APPDIR=/home/tuxedo/app/simpapp;

export PATH=$TUXDIR/binAPPDIRPATH;

export LIBPATH=$TUXDIR/libLIBPATH;

export LD_LIBRARY_PATH=$TUXDIR/libLD_LIBRARY_PATH;

export TUXCONFIG=$APPDIR/tuxconfig

export LANG=C;

export NLSPATH=$TUXDIR/local/C;

在AIX下Tuxedo默认的编译器是xlC;但XlC要钱,只好用gcc了




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论