日期:2014-05-16  浏览次数:20702 次

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