getopt.h: Compiling Linux C-Code in Windows

后端 未结 9 1912
梦谈多话
梦谈多话 2020-11-30 02:20

I am trying to get a set of nine *.c files (and nine related *.h files) to compile under Windows.

The code was originally designed in Linux to take command line argu

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 03:10

    There is a possibilty to use code from MinGW runtime (by Todd C. Miller):

    http://sourceforge.net/apps/trac/mingw-w64/browser/trunk/mingw-w64-crt/misc

    I have created a small library with these files and CMake script (can generate a VS project):

    https://github.com/alex85k/wingetopt

提交回复
热议问题