2012-06-19 62 views

回答

2

如果你想靜態VS2010中編譯SDL必須從DLL作爲「接頭」(更改配置的類型LIB,並設置在「庫」的所有依賴(對於LIB配置)爲DLL配置)。 例如來自我的SDL_VS2010.vcxproj

<Lib> 
    <AdditionalDependencies>winmm.lib;imm32.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies> 
</Lib> 
<Lib> 
    <AdditionalLibraryDirectories>$(DXSDK_DIR)\lib\x86</AdditionalLibraryDirectories> 
</Lib> 
<Lib> 
    <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> 
    <SubSystem>Windows</SubSystem> 
    <TargetMachine>MachineX86</TargetMachine> 
</Lib> 
<ProjectReference> 
    <LinkLibraryDependencies>false</LinkLibraryDependencies> 
</ProjectReference>