<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Because I tried it but it did not work:<br>&nbsp; - the first error is due to this line: &nbsp; static MYLIB_EXPORT vtkFiniteDifference *New();<br>&nbsp;&nbsp;&nbsp; that is I followed the advice at the end of the cmake page:<br>If you have some static functions then you will need something like 
the following: <br>
<BR>
<pre>class MyStaticFunctionClass<br>{<br>  public:<br>    static MYLIB_EXPORT void MyExportedFunction(int i);<br>};<br></pre>but it seems that it does not work with constructors since contructors do not have any return type.<br><br>My CMakeFiles.txt looks like this:<br><br>FIND_PACKAGE(ParaView REQUIRED)<br>INCLUDE(${PARAVIEW_USE_FILE})<br><br>ADD_LIBRARY(vtkFiniteDifference SHARED vtkFiniteDifference.cxx)<br><br># Add the new plugin in the MOSART submenu<br>ADD_PARAVIEW_PLUGIN(FiniteDifference "1.0"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SERVER_MANAGER_XML FiniteDifference.xml <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SERVER_MANAGER_SOURCES vtkFiniteDifference.cxx<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GUI_RESOURCE_FILES ../MOSART_GUI.xml)<br><br>INCLUDE_DIRECTORIES(/Developpement/ParaView-3.8.0/VTK)<br><br>Is there any redondancy between the ADD_LIBRARY and the ADD_PARAVIEW_PLUGIN lines?<br><br>Any help?<br><br><br>------ Build started: Project: FiniteDifference, Configuration: Release Win32 ------<br>Compiling...<br>vtkFiniteDifferenceClientServer.cxx<br>C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(34) : error C2487: 'New' : member of dll interface class may not be declared with dll interface<br>vtkFiniteDifference.cxx<br>C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(34) : error C2487: 'New' : member of dll interface class may not be declared with dll interface<br>..\vtkFiniteDifference.cxx(24) : warning C4273: 'vtkFiniteDifference::CollectRevisions' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(29) : see previous definition of 'CollectRevisions'<br>..\vtkFiniteDifference.cxx(25) : warning C4273: 'vtkFiniteDifference::New' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(34) : see previous definition of 'New'<br>..\vtkFiniteDifference.cxx(28) : warning C4273: 'vtkFiniteDifference::vtkFiniteDifference' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(58) : see previous definition of '{ctor}'<br>..\vtkFiniteDifference.cxx(33) : warning C4273: 'vtkFiniteDifference::~vtkFiniteDifference' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(59) : see previous definition of '{dtor}'<br>..\vtkFiniteDifference.cxx(41) : warning C4273: 'vtkFiniteDifference::RequestData' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(61) : see previous definition of 'RequestData'<br>..\vtkFiniteDifference.cxx(124) : warning C4273: 'vtkFiniteDifference::SetAxis' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(51) : see previous definition of 'SetAxis'<br>..\vtkFiniteDifference.cxx(132) : warning C4273: 'vtkFiniteDifference::PrintSelf' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(30) : see previous definition of 'PrintSelf'<br>Generating Code...<br>Build log was saved at "file://c:\Developpement\ParaView_Plugins\FiniteDifference\PV\FiniteDifference.dir\Release\BuildLog.htm"<br>FiniteDifference - 2 error(s), 7 warning(s)<br>------ Build started: Project: vtkFiniteDifference, Configuration: Release Win32 ------<br>Compiling...<br>vtkFiniteDifference.cxx<br>C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(34) : error C2487: 'New' : member of dll interface class may not be declared with dll interface<br>..\vtkFiniteDifference.cxx(24) : warning C4273: 'vtkFiniteDifference::CollectRevisions' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(29) : see previous definition of 'CollectRevisions'<br>..\vtkFiniteDifference.cxx(25) : warning C4273: 'vtkFiniteDifference::New' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(34) : see previous definition of 'New'<br>..\vtkFiniteDifference.cxx(28) : warning C4273: 'vtkFiniteDifference::vtkFiniteDifference' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(58) : see previous definition of '{ctor}'<br>..\vtkFiniteDifference.cxx(33) : warning C4273: 'vtkFiniteDifference::~vtkFiniteDifference' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(59) : see previous definition of '{dtor}'<br>..\vtkFiniteDifference.cxx(41) : warning C4273: 'vtkFiniteDifference::RequestData' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(61) : see previous definition of 'RequestData'<br>..\vtkFiniteDifference.cxx(124) : warning C4273: 'vtkFiniteDifference::SetAxis' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(51) : see previous definition of 'SetAxis'<br>..\vtkFiniteDifference.cxx(132) : warning C4273: 'vtkFiniteDifference::PrintSelf' : inconsistent dll linkage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Developpement\ParaView_Plugins\FiniteDifference\vtkFiniteDifference.h(30) : see previous definition of 'PrintSelf'<br>Build log was saved at "file://c:\Developpement\ParaView_Plugins\FiniteDifference\PV\vtkFiniteDifference.dir\Release\BuildLog.htm"<br>vtkFiniteDifference - 1 error(s), 7 warning(s)<br>------ Skipped Build: Project: ALL_BUILD, Configuration: Release Win32 ------<br>Project not selected to build for this solution configuration <br>========== Build: 0 succeeded, 2 failed, 1 up-to-date, 1 skipped ==========<br><br>                                               <br /><hr />Votre vie privée l'est-elle vraiment ? <a href='http://clk.atdmt.com/FRM/go/232102478/direct/01/' target='_new'>Internet Explorer 8 vous protège gratuitement</a></body>
</html>