<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SDL linken]]></title><description><![CDATA[<p>Hallo! Ich versuch vergeblich die SDL Bibliotheken unter VC++ Express einzubinden. Der Linker gibt fogende Fehlermeldung aus:</p>
<pre><code>1&gt;SDLmain.lib(SDL_win32_main.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_SDL_main&quot; in Funktion &quot;_main&quot;.
1&gt;C:\Users\musketaquid\Documents\Visual Studio 2005\Projects\glsdreh\Debug\glsdreh.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
</code></pre>
<p>SDL hab ich hier ausgepackt:</p>
<pre><code>Verzeichnis von C:\Users\musketaquid\Desktop\Home\libs\SDL-1.2.12\lib

15.11.2007  21:20    &lt;DIR&gt;          .
15.11.2007  21:20    &lt;DIR&gt;          ..
20.07.2007  00:22           320.512 SDL.dll
20.07.2007  00:18            42.702 SDL.lib
20.07.2007  00:18             5.144 SDLmain.lib
</code></pre>
<p>Im VCE-Linker-Konfigurationsmenu hab ich den Pfad und die Bibliotheken eingetragen.<br />
Alle Optionen sehen so aus:</p>
<pre><code>/OUT:&quot;C:\Users\musketaquid\Documents\VisualStudio2005\Projects\glsdreh\Debug\glsdreh.exe&quot; /INCREMENTAL /NOLOGO
[b]/LIBPATH:&quot;C:\Users\musketaquid\Desktop\Home\libs\SDL-1.2.12\lib&quot;[/b] /MANIFEST /MANIFESTFILE:&quot;Debug\glsdreh.exe.intermediate.manifest&quot;
/DEBUG /PDB:&quot;c:\Users\musketaquid\Documents\Visual Studio 2005\Projects\glsdreh\Debug\glsdreh.pdb&quot;
/SUBSYSTEM:CONSOLE /MACHINE:X86 /ERRORREPORT:PROMPT [b]SDL.lib SDLmain.lib[/b]  kernel32.lib
</code></pre>
<p>Und unter Extras-&gt;Optionen-&gt;Projekte und Projektmappen-&gt;VC++-Verzeichnisse hab ich unter Includedateien sowie Bibliotheksdateien meine Pfade hinzugefügt:</p>
<pre><code>C:\Users\musketaquid\Desktop\Home\libs\SDL-1.2.12\include
C:\Users\musketaquid\Desktop\Home\libs\SDL-1.2.12\lib
</code></pre>
<p>Und wie in den docs beschrieben wurde, hab ich <strong>Multithreaded-DLL (/MD)</strong> unter Codegenerieung aktiviert.<br />
Hat jemand ne Idee was ich falsch mache?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/198125/sdl-linken</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 12:59:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/198125.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Nov 2007 18:34:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SDL linken on Sun, 18 Nov 2007 18:34:03 GMT]]></title><description><![CDATA[<p>Hallo! Ich versuch vergeblich die SDL Bibliotheken unter VC++ Express einzubinden. Der Linker gibt fogende Fehlermeldung aus:</p>
<pre><code>1&gt;SDLmain.lib(SDL_win32_main.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_SDL_main&quot; in Funktion &quot;_main&quot;.
1&gt;C:\Users\musketaquid\Documents\Visual Studio 2005\Projects\glsdreh\Debug\glsdreh.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
</code></pre>
<p>SDL hab ich hier ausgepackt:</p>
<pre><code>Verzeichnis von C:\Users\musketaquid\Desktop\Home\libs\SDL-1.2.12\lib

15.11.2007  21:20    &lt;DIR&gt;          .
15.11.2007  21:20    &lt;DIR&gt;          ..
20.07.2007  00:22           320.512 SDL.dll
20.07.2007  00:18            42.702 SDL.lib
20.07.2007  00:18             5.144 SDLmain.lib
</code></pre>
<p>Im VCE-Linker-Konfigurationsmenu hab ich den Pfad und die Bibliotheken eingetragen.<br />
Alle Optionen sehen so aus:</p>
<pre><code>/OUT:&quot;C:\Users\musketaquid\Documents\VisualStudio2005\Projects\glsdreh\Debug\glsdreh.exe&quot; /INCREMENTAL /NOLOGO
[b]/LIBPATH:&quot;C:\Users\musketaquid\Desktop\Home\libs\SDL-1.2.12\lib&quot;[/b] /MANIFEST /MANIFESTFILE:&quot;Debug\glsdreh.exe.intermediate.manifest&quot;
/DEBUG /PDB:&quot;c:\Users\musketaquid\Documents\Visual Studio 2005\Projects\glsdreh\Debug\glsdreh.pdb&quot;
/SUBSYSTEM:CONSOLE /MACHINE:X86 /ERRORREPORT:PROMPT [b]SDL.lib SDLmain.lib[/b]  kernel32.lib
</code></pre>
<p>Und unter Extras-&gt;Optionen-&gt;Projekte und Projektmappen-&gt;VC++-Verzeichnisse hab ich unter Includedateien sowie Bibliotheksdateien meine Pfade hinzugefügt:</p>
<pre><code>C:\Users\musketaquid\Desktop\Home\libs\SDL-1.2.12\include
C:\Users\musketaquid\Desktop\Home\libs\SDL-1.2.12\lib
</code></pre>
<p>Und wie in den docs beschrieben wurde, hab ich <strong>Multithreaded-DLL (/MD)</strong> unter Codegenerieung aktiviert.<br />
Hat jemand ne Idee was ich falsch mache?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1405510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1405510</guid><dc:creator><![CDATA[musketaquid]]></dc:creator><pubDate>Sun, 18 Nov 2007 18:34:03 GMT</pubDate></item><item><title><![CDATA[Reply to SDL linken on Sun, 18 Nov 2007 23:02:15 GMT]]></title><description><![CDATA[<p>Gelöst <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Ich musste die Funktion main in meinem Projekt mit argumenten definieren. Also</p>
<pre><code>int main ([b]int argc, char* argv[][/b])
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1405630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1405630</guid><dc:creator><![CDATA[musketaquid]]></dc:creator><pubDate>Sun, 18 Nov 2007 23:02:15 GMT</pubDate></item></channel></rss>