My 2 cents would be that I think a good coding practice is to define these in your source file instead of the header. Especially as it they doesn't appear to be part of your API. Or even better is to make them const variables. That way it will actually exist as a symbol that you can see in a debugger and, I think, optimizations can be performed. <br>
<br><div class="gmail_quote">On Wed, Mar 10, 2010 at 10:15 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Mar 5, 2010 at 10:04 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am getting this error when building a plugin:<div><br></div><div>SYNTAX ERROR found in parsing the header file</div><div><br></div><div>I finally remembered to try BTX ETX tags, but they didn't work this time:</div>
<div>
<br></div><div>The header is very simple, here is a representative sample:</div><div><br></div><div><div>#ifndef FACTOR_INCLUDED</div><div>#define FACTOR_INCLUDED</div></div><div><div>//BTX</div><div>#define SQRT_3 1.7320508075688772935</div>
<div><br></div><div>double ArcTan2(const double& y,const double& x);</div><div><br></div><div>//ETX</div>#endif // FACTOR_INCLUDED</div><div><br></div><div>Is there any reason the parser wouldn't like this?</div>
<div><br><div>Thanks,<br><br>David</div><div><br></div></div></blockquote><div><br></div></div></div><div>Here is the simplest example that demonstrates the problem:</div><a href="http://rpi.edu/~doriad/Paraview_List/TestClass.zip" target="_blank">http://rpi.edu/~doriad/Paraview_List/TestClass.zip</a><div>
<br clear="all">Thanks,<br><br></div><div>David</div></div></div>
<br>_______________________________________________<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>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>