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.

Pat

On Wed, Mar 10, 2010 at 10:40 AM, David Doria <daviddo...@gmail.com> wrote:

> On Wed, Mar 10, 2010 at 10:31 AM, Dave Partyka 
> <dave.part...@kitware.com>wrote:
>
>> 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.
>>
>>
> Dave,
>
> Good suggestion about the #defines, but that was not the problem.
>
> The parser still chokes on the header with just one function defined:
>
> #ifndef FACTOR_INCLUDED
> #define FACTOR_INCLUDED
>
> //BTX
> double ArcTan2(const double& y,const double& x);
> //ETX
>
> #endif
>
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to