<div dir="ltr">That is because Microsoft doesn&#39;t offer C99 support which added the inline keyword to the C standard, only C89. If you want to use inline with the Visual Studio C compiler you should use:<div><br></div><div>

#define inline __inline</div><div><br></div><div><br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 10:32 AM, Sean McBride <span dir="ltr">&lt;<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Casey,<br>
<br>
I thought removing it entirely was reasonable too, but Microsoft&#39;s compiler did not agree, as it apparently does not recognize the &#39;inline&#39; keyword in C!<br>
<br>
So here&#39;s attempt #2:<br>
&lt;<a href="http://review.source.kitware.com/#/c/12924/" target="_blank">http://review.source.kitware.com/#/c/12924/</a>&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
Sean<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Sun, 6 Oct 2013 19:15:10 -0400, Casey Goodlett said:<br>
<br>
&gt;Hi Sean,<br>
&gt;<br>
&gt;Thank you very much for raising this issue.  I was having trouble<br>
&gt;cross-compiling VTK for iOS in VES and commenting out those lines fixes the<br>
&gt;build.<br>
&gt;<br>
&gt;It seems reasonable to remove that #define inline clause entirely.  Do you<br>
&gt;have a patch prepared?  Otherwise I can submit one.<br>
&gt;<br>
&gt;Thank you<br>
&gt;<br>
&gt;<br>
&gt;On Fri, Oct 4, 2013 at 10:50 AM, Sean McBride &lt;<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; Anyone know/understand the history of this nugget:<br>
&gt;&gt;<br>
&gt;&gt; -----------------------<br>
&gt;&gt; /* Define to `__inline__&#39; or `__inline&#39; if that&#39;s what the C compiler<br>
&gt;&gt;    calls it, or to nothing if &#39;inline&#39; is not supported under any name.  */<br>
&gt;&gt; #ifndef __cplusplus<br>
&gt;&gt; #define inline<br>
&gt;&gt; //#cmakedefine inline<br>
&gt;&gt; #endif<br>
&gt;&gt; -----------------------<br>
&gt;&gt;<br>
&gt;&gt; Here:<br>
&gt;&gt;<br>
&gt;&gt; &lt;<br>
&gt;&gt; <a href="http://vtk.org/gitweb?p=VTK.git;a=blob;f=ThirdParty/tiff/vtktiff/" target="_blank">http://vtk.org/gitweb?p=VTK.git;a=blob;f=ThirdParty/tiff/vtktiff/</a><br>
&gt;<a href="http://tif_config.h.in" target="_blank">tif_config.h.in</a>;h=55ff16a21756dd896891f7b08ec47af664d0cafa;hb=HEAD<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; The &quot;#define inline&quot; is causing linker errors for me.<br>
&gt;&gt;<br>
&gt;&gt; Are VTK&#39;s minimum C compiler requirements now such that we can just assume<br>
&gt;&gt; &#39;inline&#39; works?  Surely?  :)<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br></div>