Skip to content

Commit

Permalink
Don't undef main in demo - instead, link to the right libs
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Dec 30, 2023
1 parent 53f3e51 commit c4f9115
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions Guisan.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down
8 changes: 4 additions & 4 deletions demo/ff/Demo.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<TargetMachine>MachineX86</TargetMachine>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<AdditionalDependencies>Guisan.lib;SDL2.lib;SDL2main.lib;SDL2_image.lib;SDL2_ttf.lib;SDL2_mixer.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>SDL2maind.lib;Guisan.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>..\..\$(Configuration);C:\Users\Gwilherm\SDL\SDL2-2.0.8\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_ttf-2.0.14\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_image-2.0.3\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_mixer-2.0.2\lib\$(PlatformShortName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<EntryPointSymbol>
</EntryPointSymbol>
Expand All @@ -114,7 +114,7 @@
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>Guisan.lib;SDL2.lib;SDL2_image.lib;SDL2_ttf.lib;SDL2_mixer.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>SDL2main.lib;Guisan.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>..\..\$(Configuration);C:\Users\Gwilherm\SDL\SDL2-2.0.8\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_ttf-2.0.14\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_image-2.0.3\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_mixer-2.0.2\lib\$(PlatformShortName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
Expand All @@ -123,7 +123,7 @@
<AdditionalIncludeDirectories>..\..\include;.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalDependencies>Guisan.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>SDL2maind.lib;Guisan.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<SubSystem>Console</SubSystem>
</Link>
Expand All @@ -133,7 +133,7 @@
<AdditionalIncludeDirectories>..\..\include;.\include;C:\Users\Gwilherm\SDL\SDL2_ttf-2.0.14\include;C:\Users\Gwilherm\SDL\SDL2_image-2.0.3\include;C:\Users\Gwilherm\SDL\SDL2-2.0.8\include;C:\Users\Gwilherm\SDL\SDL2_mixer-2.0.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalDependencies>Guisan.lib;SDL2.lib;SDL2_image.lib;SDL2_ttf.lib;SDL2_mixer.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>SDL2main.lib;Guisan.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>..\..\$(Configuration);C:\Users\Gwilherm\SDL\SDL2-2.0.8\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_ttf-2.0.14\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_image-2.0.3\lib\$(PlatformShortName);C:\Users\Gwilherm\SDL\SDL2_mixer-2.0.2\lib\$(PlatformShortName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
Expand Down
1 change: 0 additions & 1 deletion demo/ff/src/guichanffdemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include <guisan.hpp>
#include "ffdemo.hpp"

#undef main
int main(int argc, char** argv)
{
try
Expand Down

0 comments on commit c4f9115

Please sign in to comment.