Skip to content

Commit

Permalink
Fix LNK 2001
Browse files Browse the repository at this point in the history
  • Loading branch information
lich0821 committed Dec 10, 2023
1 parent 240d032 commit 81d503b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
25 changes: 18 additions & 7 deletions SilkMp3Converter/Codec/Codec.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
<VcpkgUseStatic>true</VcpkgUseStatic>
<VcpkgTriplet>x64-windows-static</VcpkgTriplet>
</PropertyGroup>
<PropertyGroup Label="Vcpkg">
<VcpkgEnabled>true</VcpkgEnabled>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down Expand Up @@ -123,14 +126,16 @@
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir)Codec\SILK_SDK_SRC_FLP_v1.0.9\interface;$(SolutionDir)Codec\SILK_SDK_SRC_FLP_v1.0.9\src;C:\Tools\vcpkg\installed\x86-windows-static\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/VERBOSE %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>C:\Projs\SilkMp3Converter\SilkMp3Converter\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>Silk.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>C:\Tools\vcpkg\installed\x86-windows-static\lib;C:\Projs\SilkMp3Converter\SilkMp3Converter\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>libmp3lame-static.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
<ModuleDefinitionFile>
</ModuleDefinitionFile>
Expand All @@ -141,6 +146,16 @@
<PostBuildEvent>
<Message>Copy Header</Message>
</PostBuildEvent>
<ProjectReference>
<LinkLibraryDependencies>true</LinkLibraryDependencies>
<UseLibraryDependencyInputs>true</UseLibraryDependencyInputs>
</ProjectReference>
<Lib>
<AdditionalDependencies>libmp3lame-static.lib;libmpghip-static.lib</AdditionalDependencies>
</Lib>
<Lib>
<AdditionalLibraryDirectories>C:\Tools\vcpkg\installed\x86-windows-static\lib</AdditionalLibraryDirectories>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand All @@ -164,6 +179,7 @@
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir)Codec\SILK_SDK_SRC_FLP_v1.0.9\interface;$(SolutionDir)Codec\SILK_SDK_SRC_FLP_v1.0.9\src;C:\Tools\vcpkg\installed\x64-windows-static\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -180,10 +196,8 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="codec.cpp" />
<ClCompile Include="mp3_decoder.cpp" />
<ClCompile Include="mp3_encoder.cpp" />
<ClCompile Include="silk_decoder.cpp" />
<ClCompile Include="silk_encoder.cpp" />
<ClCompile Include="SILK_SDK_SRC_FLP_v1.0.9\src\SKP_Silk_A2NLSF.c" />
<ClCompile Include="SILK_SDK_SRC_FLP_v1.0.9\src\SKP_Silk_allpass_int.c" />
<ClCompile Include="SILK_SDK_SRC_FLP_v1.0.9\src\SKP_Silk_allpass_int_FLP.c" />
Expand Down Expand Up @@ -336,9 +350,6 @@
<ClInclude Include="SILK_SDK_SRC_FLP_v1.0.9\src\SKP_Silk_tables_NLSF_CB1_16.h" />
<ClInclude Include="SILK_SDK_SRC_FLP_v1.0.9\src\SKP_Silk_tuning_parameters.h" />
</ItemGroup>
<ItemGroup>
<None Include="codec.def" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
11 changes: 0 additions & 11 deletions SilkMp3Converter/Codec/Codec.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,12 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="silk_encoder.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="silk_decoder.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="mp3_encoder.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="mp3_decoder.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="codec.cpp">
<Filter>源文件</Filter>
</ClCompile>
Expand Down Expand Up @@ -480,9 +474,4 @@
<Filter>头文件</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="codec.def">
<Filter>源文件</Filter>
</None>
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions SilkMp3Converter/Converter/Converter.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
<VcpkgUseStatic>true</VcpkgUseStatic>
<VcpkgTriplet>x64-windows-static</VcpkgTriplet>
</PropertyGroup>
<PropertyGroup Label="Vcpkg">
<VcpkgEnabled>false</VcpkgEnabled>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down Expand Up @@ -125,6 +128,7 @@
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir)Codec;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down Expand Up @@ -158,6 +162,7 @@
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir)Codec;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down

0 comments on commit 81d503b

Please sign in to comment.