Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将exe程序编译为dll。我在 main 函数之前将 DllMain 添加到 main.c 和 _declspec(dllexport) 中。为了编译我使用 MinGW Shell 和 Makefile 的程序。我需要在 Makefile 中更改什么来构建 dll 而不是 exe?