cl编译器(visualstudio)在哪里生成LIB和EXP文件
我在VisualStudio附带的cl编译器中使用了以下命令cl编译器(visualstudio)在哪里生成LIB和EXP文件,c,visual-studio,compiler-construction,C,Visual Studio,Compiler Construction,我在VisualStudio附带的cl编译器中使用了以下命令 cl /LD /O2 myprogram.c 它说: /out:myprogram.dll /dll /implib:myprogram.lib myprogram.obj Creating library myprogram.lib and object myprogram.exp 我的问题是它在哪里输出这些文件?它们不在myprogram.c所在的文件夹中。找到了它。它们位于文件夹c:\Windows\SysWOW64
cl /LD /O2 myprogram.c
它说:
/out:myprogram.dll
/dll
/implib:myprogram.lib
myprogram.obj
Creating library myprogram.lib and object myprogram.exp
我的问题是它在哪里输出这些文件?它们不在myprogram.c所在的文件夹中。找到了它。它们位于文件夹c:\Windows\SysWOW64中您可能忘记了导出其他程序应该可以使用的函数。使用dumpbin.exe/exports进行双重检查。使用_declspec(dllexport)或.def文件。