<?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[Fehler in .obj Datei, nicht verstanden]]></title><description><![CDATA[<p>Hi. Ich habe mal wieder ein Problem:</p>
<p>Irgendetwas stimmt nicht mit meiner Testklasse, ich verstehe aber nicht ganz was, ich verstehe mitlerweile ganz schön viele Fehler, exceptions, die in der Konsole ausgegeben werden, aber diesen hier nicht.</p>
<p>Mein Code:</p>
<pre><code class="language-cpp">// Console Library.cpp : Defines the entry point for the console application.
//

#include &quot;stdafx.h&quot;
#include &lt;string&gt;
#include &quot;Console.h&quot;
#include &quot;List.h&quot;

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	Console console = Console();
	console.setPrintBreak(20);

	List list = List();
	list.setTitle(&quot;hi&quot;);
	for(int i = 1;i&lt;=10;i++)
	{
		list.addItem(&quot;Item_0&quot;);
	}
	list.setTab(4);
	list.printList(console);

	return 0;
}
</code></pre>
<pre><code class="language-cpp">#include &quot;StdAfx.h&quot;
#include &lt;string&gt;
#include &quot;Console.h&quot;
#include &quot;List.h&quot;
#include &lt;vector&gt;

using namespace std;

//	Attributes
	vector&lt;string&gt; items;
	string listTitle;
	string tab;
	char listChar;

//	Constrcutor
List::List()
{
	listChar = '-';
	tab = &quot; &quot;;
}

//	Methods
void List::setTab(int n)
{
	tab = (n,' ');
}

void List::setTitle(string s)
{
	listTitle = s;
}

void List::setListChar(char c)
{
	listChar = c;
}

char List::getListChar()
{
	return listChar;
}

void addItem(string s)
{
	items.push_back(s);
}

void printList(Console console)
{
	console.println(listTitle+&quot; :&quot;);
	console.drawLine();
	for(int i = 0;i&lt;items.size();i++)
	{
		console.print(tab);
		console.print(listChar);
		console.print(&quot; &quot;);
		console.println(items[i]);
	}
	console.drawLine();
}
</code></pre>
<p>Die Fehlermeldung:</p>
<pre><code>1&gt;------ Build started: Project: Console Library, Configuration: Debug Win32 ------
1&gt;Build started 02.06.2010 19:14:40.
1&gt;InitializeBuildStatus:
1&gt;  Touching &quot;Debug\Console Library.unsuccessfulbuild&quot;.
1&gt;ClCompile:
1&gt;  All outputs are up-to-date.
1&gt;  List.cpp
1&gt;f:\c++ projekte\console library\console library\list.cpp(52): warning C4018: '&lt;' : signed/unsigned mismatch
1&gt;ManifestResourceCompile:
1&gt;  All outputs are up-to-date.
1&gt;Console Library Test.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall List::printList(class Console)&quot; (?printList@List@@QAEXVConsole@@@Z) referenced in function _wmain
1&gt;Console Library Test.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall List::addItem(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;)&quot; (?addItem@List@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _wmain
1&gt;F:\C++ Projekte\Console Library\Debug\Console Library.exe : fatal error LNK1120: 2 unresolved externals
1&gt;
1&gt;Build FAILED.
1&gt;
1&gt;Time Elapsed 00:00:01.60
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
</code></pre>
<p>Ich bin euch dankbar für all eure Hilfen, M.f.G. Developer_X</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/268007/fehler-in-obj-datei-nicht-verstanden</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 04:03:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/268007.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Jun 2010 17:17:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler in .obj Datei, nicht verstanden on Wed, 02 Jun 2010 17:17:57 GMT]]></title><description><![CDATA[<p>Hi. Ich habe mal wieder ein Problem:</p>
<p>Irgendetwas stimmt nicht mit meiner Testklasse, ich verstehe aber nicht ganz was, ich verstehe mitlerweile ganz schön viele Fehler, exceptions, die in der Konsole ausgegeben werden, aber diesen hier nicht.</p>
<p>Mein Code:</p>
<pre><code class="language-cpp">// Console Library.cpp : Defines the entry point for the console application.
//

#include &quot;stdafx.h&quot;
#include &lt;string&gt;
#include &quot;Console.h&quot;
#include &quot;List.h&quot;

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	Console console = Console();
	console.setPrintBreak(20);

	List list = List();
	list.setTitle(&quot;hi&quot;);
	for(int i = 1;i&lt;=10;i++)
	{
		list.addItem(&quot;Item_0&quot;);
	}
	list.setTab(4);
	list.printList(console);

	return 0;
}
</code></pre>
<pre><code class="language-cpp">#include &quot;StdAfx.h&quot;
#include &lt;string&gt;
#include &quot;Console.h&quot;
#include &quot;List.h&quot;
#include &lt;vector&gt;

using namespace std;

//	Attributes
	vector&lt;string&gt; items;
	string listTitle;
	string tab;
	char listChar;

//	Constrcutor
List::List()
{
	listChar = '-';
	tab = &quot; &quot;;
}

//	Methods
void List::setTab(int n)
{
	tab = (n,' ');
}

void List::setTitle(string s)
{
	listTitle = s;
}

void List::setListChar(char c)
{
	listChar = c;
}

char List::getListChar()
{
	return listChar;
}

void addItem(string s)
{
	items.push_back(s);
}

void printList(Console console)
{
	console.println(listTitle+&quot; :&quot;);
	console.drawLine();
	for(int i = 0;i&lt;items.size();i++)
	{
		console.print(tab);
		console.print(listChar);
		console.print(&quot; &quot;);
		console.println(items[i]);
	}
	console.drawLine();
}
</code></pre>
<p>Die Fehlermeldung:</p>
<pre><code>1&gt;------ Build started: Project: Console Library, Configuration: Debug Win32 ------
1&gt;Build started 02.06.2010 19:14:40.
1&gt;InitializeBuildStatus:
1&gt;  Touching &quot;Debug\Console Library.unsuccessfulbuild&quot;.
1&gt;ClCompile:
1&gt;  All outputs are up-to-date.
1&gt;  List.cpp
1&gt;f:\c++ projekte\console library\console library\list.cpp(52): warning C4018: '&lt;' : signed/unsigned mismatch
1&gt;ManifestResourceCompile:
1&gt;  All outputs are up-to-date.
1&gt;Console Library Test.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall List::printList(class Console)&quot; (?printList@List@@QAEXVConsole@@@Z) referenced in function _wmain
1&gt;Console Library Test.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall List::addItem(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;)&quot; (?addItem@List@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _wmain
1&gt;F:\C++ Projekte\Console Library\Debug\Console Library.exe : fatal error LNK1120: 2 unresolved externals
1&gt;
1&gt;Build FAILED.
1&gt;
1&gt;Time Elapsed 00:00:01.60
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
</code></pre>
<p>Ich bin euch dankbar für all eure Hilfen, M.f.G. Developer_X</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1906029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1906029</guid><dc:creator><![CDATA[Developer_X]]></dc:creator><pubDate>Wed, 02 Jun 2010 17:17:57 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in .obj Datei, nicht verstanden on Wed, 02 Jun 2010 17:24:55 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Du hast bei beiden Funktionen vergessen den Klassennamen davor zu schreiben<br />
List::</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1906030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1906030</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 02 Jun 2010 17:24:55 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in .obj Datei, nicht verstanden on Wed, 02 Jun 2010 17:20:26 GMT]]></title><description><![CDATA[<p>&quot;unresolved external symbol&quot; bedeutet das du ein Symbol (Bezeichner) deklariert hast, aber nirgendwo definiert.</p>
<p>In diesem Fall benutzt du die Funktionen List::printList, doch hast du sie nirgendwo definiert. Du hast lediglich eine Funktion namens printList - die ist aber kein Member der Klasse List.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1906031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1906031</guid><dc:creator><![CDATA[Janjan]]></dc:creator><pubDate>Wed, 02 Jun 2010 17:20:26 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in .obj Datei, nicht verstanden on Wed, 02 Jun 2010 17:21:35 GMT]]></title><description><![CDATA[<p>Du hast folgendes geschrieben:</p>
<pre><code class="language-cpp">void addItem(string s)
{
    items.push_back(s);
}

void printList(Console console)
//
...
</code></pre>
<p>Vermutlich soll es so heißen:</p>
<pre><code class="language-cpp">void List::addItem(string s)
//void addItem(string s)
{
    items.push_back(s);
}

void List::printList(Console console)
//void printList(Console console)
//
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1906032</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1906032</guid><dc:creator><![CDATA[....]]></dc:creator><pubDate>Wed, 02 Jun 2010 17:21:35 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in .obj Datei, nicht verstanden on Wed, 02 Jun 2010 18:11:33 GMT]]></title><description><![CDATA[<p>Oh man, dass ich das nicht gesehen habe, danke, aber da war ich einfach zu blöd. Das ist echt ein lachhafter Fehler, auch für meiner Verhältnisse.<br />
Ich danke euch sehr,<br />
M.f.G. Developer_X</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1906060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1906060</guid><dc:creator><![CDATA[Developer_X]]></dc:creator><pubDate>Wed, 02 Jun 2010 18:11:33 GMT</pubDate></item></channel></rss>