getopt library in windows

来源:互联网 发布:淘宝开店取什么名字好 编辑:程序博客网 时间:2024/06/05 02:59

Hi all,

I have encounter some codes that include <getopt.h> library. I guess it is a library under linux enviroment. However, I am using Windows and I want to compile the codes using Visual C++. Is there a counterpart of this library for VC?

Hope some one can help. 


 

 

Here are three solutions:

1. Argtable
Argtable is a free ANSI C command line parser for Windows and other platforms by Stewart Heitmann.
See http://argtable.sourceforge.net/ 

2. XGetopt
XGetopt is a free Unix-compatible getopt() for MFC and Win32 by By Hans Dietrich 
See http://www.thecodeproject.com/cpp/xgetopt.asp

3. Dev-Cpp/Mingw
Dev-Cpp/Mingw is a free C/C++ compiler for Windows, which includes getopt().
See http://www.bloodshed.net

原创粉丝点击