<?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[globale typedef definitionen:]]></title><description><![CDATA[<p>HALLO.</p>
<p>ich möchte gerne einige typedef für mein gesamtes c++ projekt vornehmen. das soll in etwa wie folgt aussehen (meine &quot;Definition.h&quot;):</p>
<pre><code class="language-cpp">#include &lt;vector&gt;
#include &lt;algorithm&gt;

typedef std::pair &lt;int,int&gt;			MyPairInt;
typedef std::pair &lt;double,double&gt;	MyPairDbl;
typedef std::pair &lt;double,int&gt;		MyPairDblInt;
typedef std::vector &lt;MyPairDblInt&gt;	MyVecDblInt;
typedef std::vector	&lt;MyPairInt&gt;		MyVecPairInt;
typedef std::vector&lt;int&gt;			MyVecInt;
typedef std::pair &lt;int,MyPairInt&gt;	MyPair3;

extern const int DIM1;
extern const int DIM2;
extern const int REFPOINT;
extern const int REFPATT;
extern const double PHI;
</code></pre>
<p>nun meine frage: wie kann ich diese datei in mein projekt einbinden, um derartige fehlermeldungen zu vermeiden:</p>
<blockquote>
<p>error LNK2019: unresolved external symbol &quot;bool __cdecl lower_second&lt;struct std::pair&lt;double,int&gt; &gt;(struct std::pair&lt;double,int&gt; const &amp;,struct std::pair&lt;double,int&gt; const &amp;)&quot; (??<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>l</mi><mi>o</mi><mi>w</mi><mi>e</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi>s</mi><mi>e</mi><mi>c</mi><mi>o</mi><mi>n</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">lower\_second@U?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">o</span><span class="mord mathit" style="margin-right:0.02691em;">w</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">s</span><span class="mord mathit">e</span><span class="mord mathit">c</span><span class="mord mathit">o</span><span class="mord mathit">n</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>pair@NH@std@@@@YA_NABU?pair@NH@std@@0@Z) referenced in function "private: void \_\_thiscall cBild::GetSepara(bool,double,class std::vector<struct std::pair<double,int>,class std::allocator<struct std::pair<double,int> > > &,class std::vector<struct std::pair<double,int>,class std::allocator<struct std::pair<double,int> > > &,class std::vector<struct std::pair<int,struct std::pair<int,int> >,class std::allocator<struct std::pair<int,struct std::pair<int,int> > > > * const)" (?GetSepara@cBild@@AAEX\_NNAAV?vector@U?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>p</mi><mi>a</mi><mi>i</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi>N</mi><mi>H</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">pair@NH@std@@V?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">p</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">N</span><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>allocator@U?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>p</mi><mi>a</mi><mi>i</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi>N</mi><mi>H</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mn>2</mn><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mn>1</mn><mi>Q</mi><mi>A</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">pair@NH@std@@@2@@std@@1QAV?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">p</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">N</span><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">2</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">1</span><span class="mord mathit">Q</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>vector@U?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>p</mi><mi>a</mi><mi>i</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi>H</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">pair@HU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">p</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>pair@HH@std@@@std@@V?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>a</mi><mi>l</mi><mi>l</mi><mi>o</mi><mi>c</mi><mi>a</mi><mi>t</mi><mi>o</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">allocator@U?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">o</span><span class="mord mathit">c</span><span class="mord mathit">a</span><span class="mord mathit">t</span><span class="mord mathit">o</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>pair@HU?$pair@HH@std@@@std@@@2@@3@@Z) cBild_e.obj</p>
</blockquote>
<p>VIELEN DANK!<br />
STICK.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/171396/globale-typedef-definitionen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 10:34:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/171396.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Jan 2007 06:12:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 06:12:40 GMT]]></title><description><![CDATA[<p>HALLO.</p>
<p>ich möchte gerne einige typedef für mein gesamtes c++ projekt vornehmen. das soll in etwa wie folgt aussehen (meine &quot;Definition.h&quot;):</p>
<pre><code class="language-cpp">#include &lt;vector&gt;
#include &lt;algorithm&gt;

typedef std::pair &lt;int,int&gt;			MyPairInt;
typedef std::pair &lt;double,double&gt;	MyPairDbl;
typedef std::pair &lt;double,int&gt;		MyPairDblInt;
typedef std::vector &lt;MyPairDblInt&gt;	MyVecDblInt;
typedef std::vector	&lt;MyPairInt&gt;		MyVecPairInt;
typedef std::vector&lt;int&gt;			MyVecInt;
typedef std::pair &lt;int,MyPairInt&gt;	MyPair3;

extern const int DIM1;
extern const int DIM2;
extern const int REFPOINT;
extern const int REFPATT;
extern const double PHI;
</code></pre>
<p>nun meine frage: wie kann ich diese datei in mein projekt einbinden, um derartige fehlermeldungen zu vermeiden:</p>
<blockquote>
<p>error LNK2019: unresolved external symbol &quot;bool __cdecl lower_second&lt;struct std::pair&lt;double,int&gt; &gt;(struct std::pair&lt;double,int&gt; const &amp;,struct std::pair&lt;double,int&gt; const &amp;)&quot; (??<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>l</mi><mi>o</mi><mi>w</mi><mi>e</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi>s</mi><mi>e</mi><mi>c</mi><mi>o</mi><mi>n</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">lower\_second@U?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">o</span><span class="mord mathit" style="margin-right:0.02691em;">w</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">s</span><span class="mord mathit">e</span><span class="mord mathit">c</span><span class="mord mathit">o</span><span class="mord mathit">n</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>pair@NH@std@@@@YA_NABU?pair@NH@std@@0@Z) referenced in function "private: void \_\_thiscall cBild::GetSepara(bool,double,class std::vector<struct std::pair<double,int>,class std::allocator<struct std::pair<double,int> > > &,class std::vector<struct std::pair<double,int>,class std::allocator<struct std::pair<double,int> > > &,class std::vector<struct std::pair<int,struct std::pair<int,int> >,class std::allocator<struct std::pair<int,struct std::pair<int,int> > > > * const)" (?GetSepara@cBild@@AAEX\_NNAAV?vector@U?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>p</mi><mi>a</mi><mi>i</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi>N</mi><mi>H</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">pair@NH@std@@V?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">p</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">N</span><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>allocator@U?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>p</mi><mi>a</mi><mi>i</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi>N</mi><mi>H</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mn>2</mn><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mn>1</mn><mi>Q</mi><mi>A</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">pair@NH@std@@@2@@std@@1QAV?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">p</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">N</span><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">2</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">1</span><span class="mord mathit">Q</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>vector@U?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>p</mi><mi>a</mi><mi>i</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi>H</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">pair@HU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">p</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>pair@HH@std@@@std@@V?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>a</mi><mi>l</mi><mi>l</mi><mi>o</mi><mi>c</mi><mi>a</mi><mi>t</mi><mi>o</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">allocator@U?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">o</span><span class="mord mathit">c</span><span class="mord mathit">a</span><span class="mord mathit">t</span><span class="mord mathit">o</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>pair@HU?$pair@HH@std@@@std@@@2@@3@@Z) cBild_e.obj</p>
</blockquote>
<p>VIELEN DANK!<br />
STICK.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1216553</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216553</guid><dc:creator><![CDATA[stick_thai]]></dc:creator><pubDate>Thu, 25 Jan 2007 06:12:40 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 06:49:19 GMT]]></title><description><![CDATA[<p>Was ist lower_second? Ist das von dir?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1216560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216560</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 25 Jan 2007 06:49:19 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 06:58:28 GMT]]></title><description><![CDATA[<p>Ja. das habe ich geschrieben. was könnte damit nicht stimmen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1216561</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216561</guid><dc:creator><![CDATA[stick_thai]]></dc:creator><pubDate>Thu, 25 Jan 2007 06:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 06:58:12 GMT]]></title><description><![CDATA[<p>stick_thai schrieb:</p>
<blockquote>
<p>Ja. das habe ich geschrieben. was stimmt damit nicht? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
</blockquote>
<p>Das ist die Funktion, die der Linker nicht findet. Das hat IMHO mit deinen Typedefs nichts zu tun. Da das offenbar ein Template ist: Hast du die auch brav in der Headerdatei definiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1216563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216563</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 25 Jan 2007 06:58:12 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 06:58:58 GMT]]></title><description><![CDATA[<p>Das können wir Dir auch nicht sagen, da wir bisher nicht wissen was das macht/ist. Jedenfalls beschwert sich der Linker dass er lower_second nicht findet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1216565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216565</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 25 Jan 2007 06:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 07:03:50 GMT]]></title><description><![CDATA[<p>meine Functions.h</p>
<pre><code class="language-cpp">#include &lt;conio.h&gt;
#include &lt;iostream&gt;
#include &lt;sstream&gt;
#include &lt;vector&gt;
#include &lt;cmath&gt;

#include &lt;Globals.h&gt;

double	PoNe		(double);
bool	CheckBorder (int,int);
double	ArcTan		(double,double);
void	AssignInter	(int[2],double,double);
int		ConvAngle	(int,int);
void	ClearStream	(std::stringstream &amp;);
int		FilterBinomial	(int,int);
void	VecProd		(double[3],double[3],double[3]);

template &lt;typename T&gt; bool greater_first	(const T &amp;lhs, const T &amp;rhs);
template &lt;typename T&gt; bool greater_second	(const T &amp;lhs, const T &amp;rhs);
template &lt;typename T&gt; bool lower_second		(const T &amp;lhs, const T &amp;rhs);
</code></pre>
<p>und hier meine Functions.cpp</p>
<pre><code class="language-cpp">double	PoNe		(double wert)
{
//  ...
}
bool	CheckBorder (int a, int b)
{
//  ...
}
double	ArcTan		(double x, double y)
{
//  ...
}

void	AssignInter	(int inter[4],double rad, double angle)
{
//  ...
}
int		ConvAngle	(int a,int b)
{
//  ...
}

void	ClearStream	(std::stringstream &amp;filename)
{
//  ...
}
int		FilterBinomial	(int m, int n)
{
//  ...
}

void	VecProd		(double m[3],double n[3],double erg[3])
{
//  ...
}

template &lt;typename T&gt; bool greater_first	(const T &amp;lhs, const T &amp;rhs)
{
	return (rhs.first&lt;lhs.first);
}
template &lt;typename T&gt; bool greater_second	(const T &amp;lhs, const T &amp;rhs)
{
	return (rhs.second&lt;lhs.second);
}
template &lt;typename T&gt; bool lower_second		(const T &amp;lhs, const T &amp;rhs)
{
	return (rhs.second &gt; lhs.second);
}
</code></pre>
<p>müsste meiner meinung nach alles stimmen, oder? denn z.B. die funktion PoNe(), die in der gleichen source datei wie lower_second auftaucht, macht keine probleme.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1216567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216567</guid><dc:creator><![CDATA[stick_thai]]></dc:creator><pubDate>Thu, 25 Jan 2007 07:03:50 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 07:02:59 GMT]]></title><description><![CDATA[<p>Die Definition der Templatefunktionen muss in die Headerdatei.</p>
<p>Nicht, dass dieses Thema hier ungefähr jeden zweiten Tag auftaucht <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/1216568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216568</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 25 Jan 2007 07:02:59 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 07:17:26 GMT]]></title><description><![CDATA[<p>Sorry, habe ich noch nicht gewusst. aber wenn ich das umsetze, dann gibt es folgende meldungen:</p>
<pre><code class="language-cpp">error C2995: 'bool greater_first(const T &amp;,const T &amp;)' : function template has already been defined	
error C2995: 'bool greater_second(const T &amp;,const T &amp;)' : function template has already been defined	
error C2995: 'bool lower_second(const T &amp;,const T &amp;)' : function template has already been defined	
error C2995: 'bool greater_first(const T &amp;,const T &amp;)' : function template has already been defined	
error C2995: 'bool greater_second(const T &amp;,const T &amp;)' : function template has already been defined	
error C2995: 'bool lower_second(const T &amp;,const T &amp;)' : function template has already been defined	
error C2995: 'bool greater_first(const T &amp;,const T &amp;)' : function template has already been defined	
error C2995: 'bool greater_second(const T &amp;,const T &amp;)' : function template has already been defined	
error C2995: 'bool lower_second(const T &amp;,const T &amp;)' : function template has already been defined
</code></pre>
<p><strong>EDIT:</strong><br />
Habs jetzt so in der Functions.h gelöst:</p>
<pre><code class="language-cpp">#ifndef FUNCTIONS_H
#define FUNCTIONS_H
template &lt;typename T&gt; bool greater_first	(const T &amp;lhs, const T &amp;rhs)
{
	return (rhs.first&lt;lhs.first);
}
template &lt;typename T&gt; bool greater_second	(const T &amp;lhs, const T &amp;rhs)
{
	return (rhs.second&lt;lhs.second);
}
template &lt;typename T&gt; bool lower_second		(const T &amp;lhs, const T &amp;rhs)
{
	return (rhs.second &gt; lhs.second);
}
#endif
</code></pre>
<p>ist das ne gute idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1216571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216571</guid><dc:creator><![CDATA[stick_thai]]></dc:creator><pubDate>Thu, 25 Jan 2007 07:17:26 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 07:19:44 GMT]]></title><description><![CDATA[<p>Ich wollte gerade schreiben dass vermutlich geeignete Include-Guards fehlen, aber das hast Du scheinbar schon selbst gelöst. Ja, Include-Guards sind nie falsch <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/1216574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216574</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 25 Jan 2007 07:19:44 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 07:22:13 GMT]]></title><description><![CDATA[<p>JA. es scheint, dass sie den von mir gewünschten zweck erfüllen.</p>
<p>davon mal abgesehen, dass ich mit deinem hinweis, dass &quot;geeignete Include-Guards fehlen&quot;, nichts hätte anfangen können, da ich den begriff zuvor noch nie gehört habe <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/1216577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216577</guid><dc:creator><![CDATA[stick_thai]]></dc:creator><pubDate>Thu, 25 Jan 2007 07:22:13 GMT</pubDate></item><item><title><![CDATA[Reply to globale typedef definitionen: on Thu, 25 Jan 2007 07:30:10 GMT]]></title><description><![CDATA[<p>stick_thai schrieb:</p>
<blockquote>
<p>davon mal abgesehen, dass ich mit deinem hinweis, dass &quot;geeignete Include-Guards fehlen&quot;, nichts hätte anfangen können, da ich den begriff zuvor noch nie gehört habe <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>
</blockquote>
<p>Gehört nicht, aber verwendet <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="😉"
    /> (Include-Guards nennt man den #ifndef X/#define X/.../#endif Block, mit dem man die Mehrfacheinbindung von Headern verhindern kann)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1216582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1216582</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 25 Jan 2007 07:30:10 GMT</pubDate></item></channel></rss>