Hi David, you should copy and paste the exact error message you are getting so people can make more educated guesses. It's probably failing not because of the code inside the btx/etx, but because there is no vtkClass defined in that header. You are listing Factor.cpp as a SERVER_MANAGER_SOURCES, and therefore it gets wrapped. Try listing it as GUI_SOURCES or SERVER_SOURCES. See the macro documentation in ParaView/CMake/ParaViewPlugins.cmake.<br>
<br>Pat<br><br><div class="gmail_quote">On Wed, Mar 10, 2010 at 10:40 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Wed, Mar 10, 2010 at 10:31 AM, Dave Partyka <span dir="ltr"><<a href="mailto:dave.partyka@kitware.com" target="_blank">dave.partyka@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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></blockquote><div class="gmail_quote"><br></div></div><div class="gmail_quote">Dave,</div><div class="gmail_quote"><br></div><div class="gmail_quote">Good suggestion about the #defines, but that was not the problem.</div>
<div class="gmail_quote">
<br></div><div class="gmail_quote">The parser still chokes on the header with just one function defined:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><div class="im"><div class="gmail_quote">#ifndef FACTOR_INCLUDED</div>
<div class="gmail_quote">#define FACTOR_INCLUDED</div><div class="gmail_quote"><br></div><div class="gmail_quote">//BTX</div></div><div class="im"><div class="gmail_quote">double ArcTan2(const double& y,const double& x);</div>
<div class="gmail_quote">
//ETX</div><div class="gmail_quote"><br></div><div class="gmail_quote">#endif</div><div><br></div></div></div>Thanks,<br><font color="#888888"><br>David</font></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>