<?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[undefined reference]]></title><description><![CDATA[<p>Hi,</p>
<pre><code class="language-cpp">//my_tag.h

#ifndef TAG_H_INCLUDED
#define TAG_H_INCLUDED

#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;tag.h&gt;

using namespace std;

class Tag
{
    public:

    ID3_Tag worktag;
	ID3_Frame *frame1;
	char artist[1024], title[1024], length[1024], album[1024], year[1024];

    public:

    bool read(string mp3);
};

#endif // TAG_H_INCLUDED
</code></pre>
<pre><code class="language-cpp">//my_tag.cpp

#include &quot;tag.h&quot;

using namespace std;

bool Tag::read(string mp3)
{
    worktag.Link(mp3.c_str());

    frame1 = worktag.Find(ID3FID_LEADARTIST);
	frame1-&gt;Field ( ID3FN_TEXT ).Get ( artist, 1024 );

	worktag.Clear();

}
</code></pre>
<p>Der Linker meldet hierbei:</p>
<blockquote>
<p>|undefined reference to `ID3_Tag::Link(char const*, unsigned short)'|</p>
</blockquote>
<p>Was mir jedoch ein Rätsel ist da sowohl die erforderliche tag.h eingebunden wird und auch das worktag Objekt vorhanden ist.</p>
<p>Was überseh eich?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/261046/undefined-reference</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 17:22:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/261046.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Feb 2010 14:27:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to undefined reference on Fri, 12 Feb 2010 14:27:49 GMT]]></title><description><![CDATA[<p>Hi,</p>
<pre><code class="language-cpp">//my_tag.h

#ifndef TAG_H_INCLUDED
#define TAG_H_INCLUDED

#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;tag.h&gt;

using namespace std;

class Tag
{
    public:

    ID3_Tag worktag;
	ID3_Frame *frame1;
	char artist[1024], title[1024], length[1024], album[1024], year[1024];

    public:

    bool read(string mp3);
};

#endif // TAG_H_INCLUDED
</code></pre>
<pre><code class="language-cpp">//my_tag.cpp

#include &quot;tag.h&quot;

using namespace std;

bool Tag::read(string mp3)
{
    worktag.Link(mp3.c_str());

    frame1 = worktag.Find(ID3FID_LEADARTIST);
	frame1-&gt;Field ( ID3FN_TEXT ).Get ( artist, 1024 );

	worktag.Clear();

}
</code></pre>
<p>Der Linker meldet hierbei:</p>
<blockquote>
<p>|undefined reference to `ID3_Tag::Link(char const*, unsigned short)'|</p>
</blockquote>
<p>Was mir jedoch ein Rätsel ist da sowohl die erforderliche tag.h eingebunden wird und auch das worktag Objekt vorhanden ist.</p>
<p>Was überseh eich?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1854722</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1854722</guid><dc:creator><![CDATA[reger]]></dc:creator><pubDate>Fri, 12 Feb 2010 14:27:49 GMT</pubDate></item><item><title><![CDATA[Reply to undefined reference on Fri, 12 Feb 2010 14:35:56 GMT]]></title><description><![CDATA[<p>Handelt es sich bei tag.h um eine Datei aus einer externen Bibliothek?</p>
<p>Ich vermute, du benutzt eine fremde Bibliothek in deinem Projekt, hast das zusätzliche Include-Verzeichnis gesetzt, aber vergessen, das zusätzliche Lib-Verzeichnis zu setzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1854726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1854726</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Fri, 12 Feb 2010 14:35:56 GMT</pubDate></item><item><title><![CDATA[Reply to undefined reference on Fri, 12 Feb 2010 14:41:25 GMT]]></title><description><![CDATA[<p>Hau doch mal nen Namespace drum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1854731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1854731</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Fri, 12 Feb 2010 14:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to undefined reference on Fri, 12 Feb 2010 15:24:21 GMT]]></title><description><![CDATA[<p>Kopf.AufTischschlag();</p>
<p>Ich hatte tatsächlich vergessen gegen die id3lib zu linken.</p>
<p>Danke <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/1854771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1854771</guid><dc:creator><![CDATA[reger]]></dc:creator><pubDate>Fri, 12 Feb 2010 15:24:21 GMT</pubDate></item></channel></rss>