<?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[namespace wird nicht gefunden]]></title><description><![CDATA[<p>Ich habe folgenden Code:</p>
<pre><code class="language-cpp">#ifndef FFTFUNCTIONS_H
#define FFTFUNCTIONS_H

namespace fftutils
{
    static inline void printarray(complex&lt;double&gt; * array, size_t nx, size_t ny);
}

static inline
void  fftutils::printarray(complex&lt;double&gt; * array, size_t nx, size_t ny)
{
    cout &lt;&lt; endl &lt;&lt; &quot;----------- array: ---------------&quot; &lt;&lt; endl;
    for (size_t y = 0; y &lt; ny; y++) {
        for (size_t x = 0; x &lt; nx; x++) {
            cout &lt;&lt; &quot; y:&quot; &lt;&lt; y &lt;&lt; &quot; x:&quot; &lt;&lt; x
                 &lt;&lt; &quot; c:(&quot; &lt;&lt; array[y + ny *x].real() &lt;&lt; &quot; , &quot; &lt;&lt; array[y + ny *x].imag() &lt;&lt; &quot; )&quot; &lt;&lt; endl;
        }
    }
}

#endif // FFTFUNCTIONS_H
</code></pre>
<p>Wenn ich das in einer anderen cpp Datei lade und verwende,</p>
<pre><code class="language-cpp">fftutils::printArray(in, nx, 1);
</code></pre>
<p>dann bekomme ich die Fehlermeldung:</p>
<blockquote>
<p>FFTWPlanAndExecute.h(71) : error C2039: 'printArray' : is not a member of 'fftutils'<br />
FFTWPlanAndExecute.h(71) : error C3861: 'printArray': identifier not found</p>
</blockquote>
<p>Ich sehe den Fehler nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/274792/namespace-wird-nicht-gefunden</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 07:14:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/274792.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Oct 2010 11:33:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to namespace wird nicht gefunden on Sun, 03 Oct 2010 11:33:03 GMT]]></title><description><![CDATA[<p>Ich habe folgenden Code:</p>
<pre><code class="language-cpp">#ifndef FFTFUNCTIONS_H
#define FFTFUNCTIONS_H

namespace fftutils
{
    static inline void printarray(complex&lt;double&gt; * array, size_t nx, size_t ny);
}

static inline
void  fftutils::printarray(complex&lt;double&gt; * array, size_t nx, size_t ny)
{
    cout &lt;&lt; endl &lt;&lt; &quot;----------- array: ---------------&quot; &lt;&lt; endl;
    for (size_t y = 0; y &lt; ny; y++) {
        for (size_t x = 0; x &lt; nx; x++) {
            cout &lt;&lt; &quot; y:&quot; &lt;&lt; y &lt;&lt; &quot; x:&quot; &lt;&lt; x
                 &lt;&lt; &quot; c:(&quot; &lt;&lt; array[y + ny *x].real() &lt;&lt; &quot; , &quot; &lt;&lt; array[y + ny *x].imag() &lt;&lt; &quot; )&quot; &lt;&lt; endl;
        }
    }
}

#endif // FFTFUNCTIONS_H
</code></pre>
<p>Wenn ich das in einer anderen cpp Datei lade und verwende,</p>
<pre><code class="language-cpp">fftutils::printArray(in, nx, 1);
</code></pre>
<p>dann bekomme ich die Fehlermeldung:</p>
<blockquote>
<p>FFTWPlanAndExecute.h(71) : error C2039: 'printArray' : is not a member of 'fftutils'<br />
FFTWPlanAndExecute.h(71) : error C3861: 'printArray': identifier not found</p>
</blockquote>
<p>Ich sehe den Fehler nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1960740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1960740</guid><dc:creator><![CDATA[pospiech]]></dc:creator><pubDate>Sun, 03 Oct 2010 11:33:03 GMT</pubDate></item><item><title><![CDATA[Reply to namespace wird nicht gefunden on Sun, 03 Oct 2010 11:39:37 GMT]]></title><description><![CDATA[<p>Oben schreibst du printarray und unten printArray. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1960742</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1960742</guid><dc:creator><![CDATA[capslock]]></dc:creator><pubDate>Sun, 03 Oct 2010 11:39:37 GMT</pubDate></item><item><title><![CDATA[Reply to namespace wird nicht gefunden on Sun, 03 Oct 2010 11:48:58 GMT]]></title><description><![CDATA[<p>capslock schrieb:</p>
<blockquote>
<p>Oben schreibst du printarray und unten printArray. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
</blockquote>
<p>Vielen Dank, ich wäre nicht darauf gekommen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1960744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1960744</guid><dc:creator><![CDATA[pospiech]]></dc:creator><pubDate>Sun, 03 Oct 2010 11:48:58 GMT</pubDate></item><item><title><![CDATA[Reply to namespace wird nicht gefunden on Sun, 03 Oct 2010 11:57:17 GMT]]></title><description><![CDATA[<p>Warum static inline? Da gibt's doch keinen guten Grund für.</p>
<p>Übrigens: Es lohnt sich, die Geschwindigkeit von opeartor*(complex&lt;&gt;,complex&lt;&gt;) unter verschiedenen Compileroptionen zu testen und mit</p>
<pre><code class="language-cpp">complex&lt;double&gt; mal(complex&lt;double&gt; a, complex&lt;double&gt; b)
{
  return complex&lt;double&gt;(
    a.real()*b.real() - a.imag()*b.imag(),
    a.real()*b.imag() + a.imag()*b.real(),
  );
}
</code></pre>
<p>zu vergleichen. Zumindest in der Standardeinstellung ist der operator* für komplexe Zahlen beim GCC relativ langsam. Das liegt daran, dass es eine Sonderbehandlung für infinity/nan gibt, die man eigentlich oft nicht benötigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1960747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1960747</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Sun, 03 Oct 2010 11:57:17 GMT</pubDate></item></channel></rss>