【发布时间】:2015-05-06 16:13:53
【问题描述】:
我告诉 Visual Studio 构建一个 .dll,但无论我做什么,它都只构建一个 .lib。 我将配置类型设置为 .dll,扩展名设置为 .dll,在预处理器指令中我有“_WINDLL”,并且我将输出文件设置为“$(CommonProgramW6432)\VST3\Steinberg\ $(项目名称).dll" 。但是,它仍然每次都构建一个静态(.lib),我不知道为什么。我正在尝试从一个名为 Vst3 的 sdk 编译一个名为“AGain”的示例程序,如果你不介意为了帮助我而经历一场残酷的地狱般的噩梦,你可以到这里尝试编译它。
这是我构建 .lib 文件后它给我的警告
Warning 1 warning MSB8012:
TargetPath(C:\VST3 SDK\public.sdk\samples\vst\again\win\Win32\Debug\AGain.dll)
does not match the Linker's OutputFile property value
(C:\Program Files (x86)\Common Files\VST3\Steinberg\AGain).
This may cause your project to build incorrectly.
To correct this,
please make sure that $(OutDir),
$(TargetName) and $(TargetExt)
property values match the value specified in %(Link.OutputFile).
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets 1137
这个问题直接出现,根本没有对源代码或项目进行任何更改。
【问题讨论】:
标签: c++ visual-studio-2012 dll sdk vst