I use Cygwin to build source code to DLL used by windows app.
When I use GCC core
/ GCC g++
, the app crash if it calls function (which includes printf
or malloc
) in DLL.
When I use Mingw64-x86_64-gcc-core
/ Mingw64-x86_64-gcc-g++
it reports error like sys/socket.h:No such file or directory
.
Can anyone explain how to do it? Thanks.