windows装有Microsoft Visual C++ 可使用如下命令: cl -I ..... -LD *.c -Fe*.dll 其中-Fe不可缺少。 linux下可以使用gcc: gcc -G -I..... *.c -o lib*.so