1)‘_wcsicmp’在此作用域中尚未声明#ifdef WIN32
#define _tcsicmp _wcsicmp
#else
#define _tcsicmp wcscasecmp
#endif2)_stricmp 在此作用域中尚未声明
#include <string.h>
将_stricmp改成strcasecmp3)atoi的wchar版本不存在,
#define _ttoi _wtoi
改成使用
#define _tcstol wcstol4)_atoi64
改成
atoll5)‘itoa’在此作用域中尚未声明 或者 ‘_itoa’在此作用域中尚未声明
改成
sprintf(buf,"%d",n);6)‘ultoa’在此作用域中尚未声明 或者 ‘_ultoa’在此作用域中尚未声明
改成
sprintf(buf,"%ul",n);7)‘ltoa’在此作用域中尚未声明 或者 ‘_ltoa’在此作用域中尚未声明
改成
sprintf(buf,"%l",n);8)‘_i64toa’在此作用域中尚未声明
改成sprintf(buf,"%lld",n);
9)‘_ui64toa’在此作用域中尚未声明
改成
sprintf(buf,"%llu",n);
10)htonl,htons,ntohl,ntohs 在此作用域中尚未声明
包含
#include <arpa/inet.h>11)‘__int64’没有命名一个类型
将__int64 改为 long long
32位为ILP32(int,long,pointer为32位),64位采用LP64(long,pointer为64),其他不变12)‘struct in_addr’没有名为‘S_un’的成员
in_addr ip;
ip.S_un.S_addr = "127.0.0.1";
将ip.S_un.S_addr改为ip.s_addr,如下:
ip.s_addr = "127.0.0.1";
ln 软连接目录WireShark下抓取IPv6数据包使用教程相关资讯 Windows和Linux
- Windows和Linux服务器差异 (08/27/2015 07:36:38)
- Windows和Linux系统下获取多网卡的 (04/01/2013 11:04:33)
| - 选择Windows还是Linux?看完就明白 (08/27/2015 07:32:09)
- 完美方案 解决Windows和Linux系统 (05/25/2007 06:18:12)
|
本文评论 查看全部评论 (0)