[英]Visual studio spitting out a .lib instead of a .dll
我告訴Visual Studio構建.dll,但是無論我做什么,它都只會構建.lib。 在預處理器指令中,我將配置類型設置為.dll,擴展名設置為.dll,我具有“ _WINDLL”,並且將輸出文件設置為“ $(CommonProgramW6432)\\ VST3 \\ Steinberg \\ $(ProjectName).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
該問題直接出現,沒有對源代碼或項目進行任何更改。
轉到項目屬性(alt + enter),然后在“配置屬性”下找到“常規”選項卡。 將“目標擴展名”更改為“ .dll”。 現在,在“鏈接器”選項卡下,將“輸出文件”字段保留為空白。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.