ÊÇÓÃva_listµÄº¯Êý£¬´ÓLinuxתµ½windows²»ÄÜʹÓã¿
int write_to_log(char *content, ...)
{
if(logfile == NULL){
fprintf(stderr, "logfile must be initialized!\n", stderr);
return(-1);
}
va_list argument;
va_start(argument, content);
vfprintf(logfile, content, argument);
va_end(argument);
return 0;
}
ÉÏÃæÊǺ¯ÊýÔÐÍ
ÏÂÃæÊÇÔÚvc 6.0ϱàÒëºó±¨µÄ´í
e:\vc6.0ÍêÕûÂÌÉ«°æ\myprojects\server\share.c(62) : error C2275: 'va_list' : illegal use of this type as an expression
e:\vc6.0ÍêÕûÂÌÉ«°æ\vc98\include\stdio.h(97) : see declaration of 'va_list'
e:\vc6.0ÍêÕûÂÌÉ«°æ\myprojects\server\share.c(62) : error C2146: syntax error : missing ';' before identifier 'argument'
e:\vc6.0ÍêÕûÂÌÉ«°æ\myprojects\server\share.c(62) : error C2065: 'argument' : undeclared identifier
e:\vc6.0ÍêÕûÂÌÉ«°æ\myprojects\server\share.c(63) : warning C4047: '=' : 'int ' differs in levels of indirection from 'char *'
e:\vc6.0ÍêÕûÂÌÉ«°æ\myprojects\server\share.c(64) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int '
e:\vc6.0ÍêÕûÂÌÉ«°æ\myprojects\server\share.c(64) : warning C4024: 'vfprintf' : different types for formal and actual parameter 3
e:\vc6.0ÍêÕûÂÌÉ«°æ\myprojects\server\sha
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ʹÓÃStruts2ÉÏ´«Îļþ£¬ÔÚlinuxϱ¨´í
2009-09-29 14:56:20,801 [org.apache.struts2.interceptor.FileUploadInterceptor]-[ERROR] Processing of multipart/form-data request failed. c:/temp/upload__1dcd07ee_12 ......
linux Ͻø³Ì´´½¨¡£
ʹÓÃvfork() º¯Êý´´½¨ÁË×Ó½ø³Ìºó£¬×Ó½ø³ÌÏÈÐÐÖ´ÐУ¬ÔÚ×Ó½ø³Ìµ÷ÓÃexit»òexec֮ǰ¸¸½ø³Ì´¦ÓÚʲô״̬£¿£¿
²»ÖªµÀ£»Ê×ÏÈδ±ØÊÇ×Ó½ø³ÌÏÈÖ´ÐУ»µÚ2¸¸½ø³ÌÒ²´¦ÓÚÖ´ÐÐ״̬£»ÖÁÓÚ¸¸½ø³Ìµ½µ××öʲô£»¿´´ ......
ÎÒÓÃRPM±¨°²×°ÁËÒ»¸öÀϰ汾µÄJRE£¬ºóÀ´Ïëװа汾µÄ£¬
²»¹ý£¬ÎÒ°Ñ/usr/javaĿ¼ֱ½Ó¸øÉ¾ÁË£¬
ºóÔÙ°²×°µÄʱºò£¬×ÜÊÇÌáʾ°æ±¾³åÍ»£¬
¶øÇÒÎÒÓÃRPM°üÐ¶ÔØÊ±Ò²ÕÒ²»µ½ÎļþÁË¡£
ÎÒ¶ÔLINUX²»ÊìϤ£¬Ï£Íû¸ßÊÖ°ïæ¡£
http: ......