getopt.h: Compiling Linux C-Code in Windows

后端 未结 9 1897
梦谈多话
梦谈多话 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:14

    You might try looking into glib-2.0 as an alternative. It would be a bit large for just needing an option parser. The up side would be having access to all the other wonderful toys in the glib.

    Just to be honest, I haven't tried getting this to work (I stick mostly to Linux), so YMMV.

    Getting glib to work in windows: HowTo

    Oh, you might explore using mingw for the build environment, and visual studio for your IDE.

    Glib for Win32: HowTo

    Anywho, hope this helps.

提交回复
热议问题