小雨飞
关于从SCO UNIX移植C程序到SUSE LINUX的问题
前些日子,我将我原来在SCO UNIX下下好的程序移植到SUSE LINUX10,在编译时提示一些头文件没有,经过查找也没有找到(开发资源包已经安装了的)。make时出现的问题如下:
......
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
lib_tparm.c:131: error: parse error before "va_dcl"
lib_tparm.c:132: error: syntax error before '{' token
lib_tparm.c:146: warning: parameter names (without types) in function declaration
lib_tparm.c:146: warning: data definition has no type or storage class
lib_tparm.c:147: error: conflicting types for `string'
lib_tparm.c:134: error: previous declaration of `string'
lib_tparm.c:147: error: `parms' undeclared here (not in a function)
......
特向各位高手请教,万分感谢!!