<?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[Hilfe, cmath kompiliert nicht mehr...]]></title><description><![CDATA[<p>Hallo, seit vor 2 stunden kompiliert mein Code plötzlich nicht mehr...<br />
Es muss irgendwie an cmath liegen. Hatte schomal wer vor mir das Problem??<br />
Ich nehme an folgende Fehler sind der Knackpunkt:<br />
<a href="http://pastebin.com/3QvCGX8C" rel="nofollow">http://pastebin.com/3QvCGX8C</a><br />
alles andere sind dann Folgefehler.<br />
Woran könnte das liegen (gcc 4.7.2)?<br />
Schönen Gruß<br />
Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/320342/hilfe-cmath-kompiliert-nicht-mehr</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 04:50:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/320342.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Sep 2013 21:36:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hilfe, cmath kompiliert nicht mehr... on Tue, 24 Sep 2013 21:36:49 GMT]]></title><description><![CDATA[<p>Hallo, seit vor 2 stunden kompiliert mein Code plötzlich nicht mehr...<br />
Es muss irgendwie an cmath liegen. Hatte schomal wer vor mir das Problem??<br />
Ich nehme an folgende Fehler sind der Knackpunkt:<br />
<a href="http://pastebin.com/3QvCGX8C" rel="nofollow">http://pastebin.com/3QvCGX8C</a><br />
alles andere sind dann Folgefehler.<br />
Woran könnte das liegen (gcc 4.7.2)?<br />
Schönen Gruß<br />
Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2355284</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2355284</guid><dc:creator><![CDATA[M10n]]></dc:creator><pubDate>Tue, 24 Sep 2013 21:36:49 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe, cmath kompiliert nicht mehr... on Tue, 24 Sep 2013 21:55:56 GMT]]></title><description><![CDATA[<p>Es gibt diverse <code>using</code> -Deklarationen im <code>&lt;cmath&gt;</code> , die die C-Funktionen im <code>std</code> -Namensraum bekanntmachen:</p>
<pre><code>using ::sin; // Beispiel: Zeile 434
</code></pre>
<p>Die lösen deine Fehler aus. Da sie anscheinend nicht deklariert sind, ist dein Fehler in <code>&lt;math.h&gt;</code> - möglicherweise hast du ein Makro definiert, dass dem Include-Guard-Makro <code>&lt;math.h&gt;</code> gleicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2355286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2355286</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Tue, 24 Sep 2013 21:55:56 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe, cmath kompiliert nicht mehr... on Tue, 24 Sep 2013 21:57:45 GMT]]></title><description><![CDATA[<p>war mein fehler, ich hatte gedankenlos eine klasse mit berechnungen math.h/math.cpp genannt (obschon in 'nem eigenen namespace) das hat die ganze verwirrung gestiftet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2355288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2355288</guid><dc:creator><![CDATA[M10n]]></dc:creator><pubDate>Tue, 24 Sep 2013 21:57:45 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe, cmath kompiliert nicht mehr... on Tue, 24 Sep 2013 22:00:23 GMT]]></title><description><![CDATA[<p>danke für die antwort, das war ja tatsächlich genau das problem..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2355289</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2355289</guid><dc:creator><![CDATA[M10n]]></dc:creator><pubDate>Tue, 24 Sep 2013 22:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe, cmath kompiliert nicht mehr... on Tue, 24 Sep 2013 22:33:30 GMT]]></title><description><![CDATA[<p>M10n schrieb:</p>
<blockquote>
<p>danke für die antwort, das war ja tatsächlich genau das problem..</p>
</blockquote>
<p>Dann beachte in Zukunft die Regeln für reservierte Bezeichner:</p>
<blockquote>
<p><strong>17.4.3.2.1 Global names</strong><br />
Certain sets of names and function signatures are always reserved to the implementation:</p>
<p>Each name that contains a double underscore (_ _) or begins with an underscore followed by an uppercase letter (2.11) is reserved to the implementation for any use.<br />
Each name that begins with an underscore is reserved to the implementation for use as a name in the global namespace.<sup>*</sup></p>
<p><sup>*</sup>: Such names are also reserved in namespace ::std (17.4.3.1).</p>
</blockquote>
<p>Faustregel: Unterstrich am Anfang: Böse.</p>
<p>Und noch zusätzlich die Regeln aus C, dass man keine Bezeichner benutzen darf, die einem Makro aus der Standardbibliothek gleichen. Und wenn du ganz, ganz sicher sein willst, dann hältst du auch noch die POSIX-Spezifikationen ein:<br />
<a href="http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Reserved-Names.html" rel="nofollow">http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Reserved-Names.html</a><br />
Wobei ich da gerade selbst überrascht war:</p>
<blockquote>
<p>Names that end with ‘_t’ are reserved for additional type names.</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /><br />
Den kannte ich noch gar nicht. Nun, ungarische Notation ist ohnehin nicht mein Stil, aber trotzdem gut zu wissen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2355296</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2355296</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 24 Sep 2013 22:33:30 GMT</pubDate></item></channel></rss>