vs2010 生成解决方案 fatal error C1083: 无法打开包括文件:“getopt.h”: 怎么解决

vs2010 生成解决方案 fatal error C1083: 无法打开包括文件:“getopt.h”: 如何解决?

我在用 vs2010 编译一个DLL时, 出现了如下错误:

1>e:\driverprogram\imageprintlibrary\imageprinter4\tiffcp.h(10): fatal error C1083: 无法打开包括文件:“getopt.h”: No such file or directory


用谷歌百度搜索了,得知是确实 getopt.h文件,需要自己从网上下载该文件并加载到自己的项目当中去,我把这个网址:http://www.opensource.apple.com/source/bc/bc-8/bc/h/getopt.h


的代码 拷贝到 getopt.h里面去,再次编译,但是还是提醒上面相同的错误,
求问高手,如何解决?

谢谢各位!
------解决方案--------------------
his file is part of the GNU C Library.  Its master source is NOT part of
the C library, however.  The master source lives in /gd/gnu/lib.