If you want the constructor exported, you should export the class (which
exports all of its public API), not a single function within the class.
Also, if you export a class, all of its parent classes should also be
exported.
On Tue, Jul 6, 2010 at 7:56 AM, Fred Fred wrote:
> Because I tried i
The wiki page you cite is still relevant for cmake/visual studio with
shared libraries. You do NOT need this line in your CMakeLists.txt file:
ADD_LIBRARY(vtkFiniteDifference SHARED vtkFiniteDifference.cxx)
The ADD_PARAVIEW_PLUGIN should do that for you.
class MyStaticFunctionClass
{
public
Because I tried it but it did not work:
- the first error is due to this line: static MYLIB_EXPORT
vtkFiniteDifference *New();
that is I followed the advice at the end of the cmake page:
If you have some static functions then you will need something like
the following:
class MyStatic