首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

Linux下面的C/C++移植到Windows下面,该如何处理

2012-03-03 
Linux下面的C/C++移植到Windows下面#includelinux/config.h#includelinux/module.h#includelinux/ker

Linux下面的C/C++移植到Windows下面
#include   <linux/config.h>
#include   <linux/module.h>
#include   <linux/kernel.h>
#include   <linux/netdevice.h>
#include   <linux/etherdevice.h>
#include   <linux/pci.h>
#include   <linux/delay.h>
#include   <linux/ethtool.h>
#include   <linux/mii.h>
#include   <linux/crc32.h>
#include   <asm/uaccess.h>  
#include   <linux/in.h>
#include   <linux/ip.h>
#include   <linux/tcp.h>
#include   <linux/sched.h>
#include   <linux/tty.h>  
#include   <linux/if_vlan.h>
#include   <linux/version.h>

上面这些头文件原来是LINXU下面的
现在程序到WINDOWS下面来   我需要怎么替换。
谢谢各位了。

[解决办法]
They are diffrent versions between the linux and MicroSoft 's windows.Even some definitions are diffrent.So you have to check the detail of the head-file of each library file.
[解决办法]
LZ列出来的这些文件不但Windows没有的呀,其它的Unix都没有,
如果你的程序真的用了这些文件中的函数,不要说移植到Windows上,就是移植到其它Unix上都很困难!
如果用程序只使用标准库,移植是轻松的!
关于标准库,可以到这里看看
http://en.wikipedia.org/wiki/C_standard_library

热点排行