这里用的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了