Reference a GNU C (POSIX) DLL built in GCC against Cygwin, from C#/NET

后端 未结 5 1920
闹比i
闹比i 2020-12-05 20:52

Here is what I want: I have a huge legacy C/C++ codebase written for POSIX, including some very POSIX specific stuff like pthreads. This can be compiled on Cygwin/GCC and ru

5条回答
  •  感情败类
    2020-12-05 20:54

    The standard MS C compiler supports most of the POSIX interfaces including pthreads. Sometimes as separate implementations but usually as macros which convert the POSIX syntax to windows library calls.

    If your C code doesn't have too many "gnuisms" you should be able to compile it using the standard Visual C compiler.

提交回复
热议问题