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

后端 未结 5 1928
闹比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 21:12

    You should be able to reference the DLL that was built against Cygwin without having to create a new DLL. The only requirement is that you need to make sure that both "cygwin.dll" and the DLL that you are trying to load are in the appropriate paths. You probably need to use SetDllDirectory prior to invoking "LoadLibrary".

提交回复
热议问题