<?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[MySQL einbinden]]></title><description><![CDATA[<p>Hi,<br />
ich möchte MySQL einbinden. Dafür habe ich mir erstmal MySQL installiert, alle nötigen Verzeichnisse angegeben: includes, libs. Aber wenn ich einen MySQL Befehl benutzen möchte, krieg ich Linker error.</p>
<blockquote>
<p>1&gt;------ Erstellen gestartet: Projekt: OnlineTest, Konfiguration: Debug Win32 ------<br />
1&gt;main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_mysql_real_connect@32&quot; in Funktion &quot;_main&quot;.<br />
1&gt;main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_mysql_init@4&quot; in Funktion &quot;_main&quot;.<br />
1&gt;C:\Users\Henning\Documents\Visual Studio 2010\Projects\OnlineTest\Debug\OnlineTest.exe : fatal error LNK1120: 2 nicht aufgelöste externe Verweise.<br />
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========</p>
</blockquote>
<pre><code>#include &lt;windows.h&gt;
#include &lt;mysql.h&gt;
#pragma comment(lib,&quot;libmysql.lib&quot;)

MYSQL*mysql;

void main()
{
	mysql_init(mysql);
	mysql_real_connect(mysql,&quot;localhost&quot;,&quot;root&quot;,&quot;PASSSWORT&quot;,&quot;game&quot;,3306,NULL,NULL);
}
</code></pre>
<p>Danke für jede Hilfe :).</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/267750/mysql-einbinden</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 07:02:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/267750.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 May 2010 16:16:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MySQL einbinden on Sat, 29 May 2010 16:17:53 GMT]]></title><description><![CDATA[<p>Hi,<br />
ich möchte MySQL einbinden. Dafür habe ich mir erstmal MySQL installiert, alle nötigen Verzeichnisse angegeben: includes, libs. Aber wenn ich einen MySQL Befehl benutzen möchte, krieg ich Linker error.</p>
<blockquote>
<p>1&gt;------ Erstellen gestartet: Projekt: OnlineTest, Konfiguration: Debug Win32 ------<br />
1&gt;main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_mysql_real_connect@32&quot; in Funktion &quot;_main&quot;.<br />
1&gt;main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_mysql_init@4&quot; in Funktion &quot;_main&quot;.<br />
1&gt;C:\Users\Henning\Documents\Visual Studio 2010\Projects\OnlineTest\Debug\OnlineTest.exe : fatal error LNK1120: 2 nicht aufgelöste externe Verweise.<br />
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========</p>
</blockquote>
<pre><code>#include &lt;windows.h&gt;
#include &lt;mysql.h&gt;
#pragma comment(lib,&quot;libmysql.lib&quot;)

MYSQL*mysql;

void main()
{
	mysql_init(mysql);
	mysql_real_connect(mysql,&quot;localhost&quot;,&quot;root&quot;,&quot;PASSSWORT&quot;,&quot;game&quot;,3306,NULL,NULL);
}
</code></pre>
<p>Danke für jede Hilfe :).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1904168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1904168</guid><dc:creator><![CDATA[Razoron]]></dc:creator><pubDate>Sat, 29 May 2010 16:17:53 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL einbinden on Sat, 29 May 2010 16:22:16 GMT]]></title><description><![CDATA[<p>Du linkst nicht gegen die Bibliothek. Du musst die Bibliothek in den Projektoptionen als zusätzliche Abhängigkeit auflisten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1904170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1904170</guid><dc:creator><![CDATA[Janjan]]></dc:creator><pubDate>Sat, 29 May 2010 16:22:16 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL einbinden on Sat, 29 May 2010 16:23:24 GMT]]></title><description><![CDATA[<p>Erledigt. Geht immer noch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1904174</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1904174</guid><dc:creator><![CDATA[Razoron]]></dc:creator><pubDate>Sat, 29 May 2010 16:23:24 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL einbinden on Sat, 29 May 2010 16:25:05 GMT]]></title><description><![CDATA[<p>Machs richtig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1904176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1904176</guid><dc:creator><![CDATA[Janjan]]></dc:creator><pubDate>Sat, 29 May 2010 16:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL einbinden on Sat, 29 May 2010 16:42:14 GMT]]></title><description><![CDATA[<p>Razoron schrieb:</p>
<blockquote>
<p>alle nötigen Verzeichnisse angegeben: includes, libs</p>
</blockquote>
<p>Er findet deine Bibliothek nicht.<br />
Möglichkeit 1 wäre, du kopierst dir die Lib von Mysql in den entsprechenden lib-Ordner deiner IDE/Compilers oder du schaust nochmal, ob der Pfad, wo immer du ihn angegeben hast, auch an der richtigen Stelle angegeben hast.</p>
<p>Codetechnisch ist nichts zu bemängeln. Hab ich im VS auch immer genauso gemacht und hat wunderbar funktioniert. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1904188</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1904188</guid><dc:creator><![CDATA[BasicMan01]]></dc:creator><pubDate>Sat, 29 May 2010 16:42:14 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL einbinden on Sat, 29 May 2010 17:32:26 GMT]]></title><description><![CDATA[<p>Ich benutze Visual Studio 10 und habe alle libs in das VC/lib Verzeichniss kopiert. Geht immer noch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1904205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1904205</guid><dc:creator><![CDATA[Razoron]]></dc:creator><pubDate>Sat, 29 May 2010 17:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL einbinden on Sun, 30 May 2010 10:18:04 GMT]]></title><description><![CDATA[<p>Okay, das Problem hat sich gelöst... Ich habe VS 32bit und MySQL 64bit druff.<br />
Jetzt gehts :). Trotzdem danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1904400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1904400</guid><dc:creator><![CDATA[Razoron]]></dc:creator><pubDate>Sun, 30 May 2010 10:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL einbinden on Sun, 30 May 2010 11:00:45 GMT]]></title><description><![CDATA[<p>Und was hast du jetzt umgestellt? Hast du eine Mysql 32 Bit installiert?<br />
Die Lösung würde mich jetzt interessieren <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1904416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1904416</guid><dc:creator><![CDATA[BasicMan01]]></dc:creator><pubDate>Sun, 30 May 2010 11:00:45 GMT</pubDate></item></channel></rss>