<?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[link Fehler]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich hab ein kleines Problem (VC++ Express 2008).</p>
<p>Folgende Datei-Struktur führt zu Fehlern beim linken:</p>
<p>in &quot;main.cpp&quot;:</p>
<pre><code class="language-cpp">#include &quot;linalg.h&quot;

int main() 
{
//...
}
</code></pre>
<p>in &quot;linalg.h&quot;:</p>
<pre><code class="language-cpp">#ifndef _LINALG_H
#define _LINALG_H

#include &quot;aligned_malloc.h&quot;

namespace linalg
{

void*(* const malloc)(size_t n) = &amp;aligned_malloc16;
void(* const free)(void *p) = &amp;aligned_free16;

// ...
}
#endif
</code></pre>
<p>in &quot;aligned_malloc.h&quot;: die Deklaration von aligned_malloc16 und aligned_free16<br />
in &quot;aligned_malloc.c&quot;: die Definition -&quot;-</p>
<p>-&gt; Fehler:<br />
Linking...<br />
main.obj : error LNK2001: unresolved external symbol &quot;void __cdecl aligned_free16(void *)&quot; (?aligned_free16@@YAXPAX@Z)<br />
main.obj : error LNK2001: unresolved external symbol &quot;void * __cdecl aligned_malloc16(unsigned int)&quot; (?aligned_malloc16@@YAPAXI@Z)</p>
<p>Liegts an mir, oder hab ich da durch die Umbenennung in linalg.h das build system von MSVC &quot;überlistet&quot;?<br />
Falls ja, was tun?</p>
<p>Vielen Dank schonmal...<br />
C14</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/245763/link-fehler</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 13:56:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/245763.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Jul 2009 13:11:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to link Fehler on Sat, 18 Jul 2009 13:11:57 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich hab ein kleines Problem (VC++ Express 2008).</p>
<p>Folgende Datei-Struktur führt zu Fehlern beim linken:</p>
<p>in &quot;main.cpp&quot;:</p>
<pre><code class="language-cpp">#include &quot;linalg.h&quot;

int main() 
{
//...
}
</code></pre>
<p>in &quot;linalg.h&quot;:</p>
<pre><code class="language-cpp">#ifndef _LINALG_H
#define _LINALG_H

#include &quot;aligned_malloc.h&quot;

namespace linalg
{

void*(* const malloc)(size_t n) = &amp;aligned_malloc16;
void(* const free)(void *p) = &amp;aligned_free16;

// ...
}
#endif
</code></pre>
<p>in &quot;aligned_malloc.h&quot;: die Deklaration von aligned_malloc16 und aligned_free16<br />
in &quot;aligned_malloc.c&quot;: die Definition -&quot;-</p>
<p>-&gt; Fehler:<br />
Linking...<br />
main.obj : error LNK2001: unresolved external symbol &quot;void __cdecl aligned_free16(void *)&quot; (?aligned_free16@@YAXPAX@Z)<br />
main.obj : error LNK2001: unresolved external symbol &quot;void * __cdecl aligned_malloc16(unsigned int)&quot; (?aligned_malloc16@@YAPAXI@Z)</p>
<p>Liegts an mir, oder hab ich da durch die Umbenennung in linalg.h das build system von MSVC &quot;überlistet&quot;?<br />
Falls ja, was tun?</p>
<p>Vielen Dank schonmal...<br />
C14</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1745300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1745300</guid><dc:creator><![CDATA[C14]]></dc:creator><pubDate>Sat, 18 Jul 2009 13:11:57 GMT</pubDate></item></channel></rss>