On Fri, Feb 18, 2011 at 12:03 PM, Martin <span dir="ltr">&lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 18/02/11 02:39 PM, Elliott Slaughter wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m getting a link error when following the counter tutorial from the following page:<br>
<br>
<a href="http://pdstatic.iem.at/externals-HOWTO/node4.html" target="_blank">http://pdstatic.iem.at/externals-HOWTO/node4.html</a><br>
<br>
2&gt;counter.obj : error LNK2001: unresolved external symbol _s_float<br>
2&gt;C:\Users\Elliott\...\externals\build\Debug\counter.dll : fatal error LNK1120: 1 unresolved externals<br>
<br>
</blockquote>
<br></div>
I think it&#39;s because you need to define MSW in the preprocessor defines section so that &quot;EXPORT&quot; in m_pd.h is replaced by &quot;__declspec(dllimport)&quot;. Otherwise it&#39;s just &quot;extern&quot; and the linker can&#39;t find it.<br>

Another way to avoid that error is to replace any ocurrence of &amp;s_float with gensym(&quot;float&quot;) but then you&#39;ll probably run into more trouble down the line.</blockquote><div><br></div><div>Thanks. The MSW fix worked. Funny that m_pd.h can&#39;t figure that out automatically.... </div>
</div><br>-- <br>Elliott Slaughter<br><br>&quot;Don&#39;t worry about what anybody else is going to do. The best way to predict the future is to invent it.&quot; - Alan Kay<br>