Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
cl编译器(visualstudio)在哪里生成LIB和EXP文件_C_Visual Studio_Compiler Construction - Fatal编程技术网

cl编译器(visualstudio)在哪里生成LIB和EXP文件

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

我在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中

您可能忘记了导出其他程序应该可以使用的函数。使用dumpbin.exe/exports进行双重检查。使用_declspec(dllexport)或.def文件。