<HTML>
<HEAD>
<TITLE>Re: [Paraview] error building my code</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>The error that you are getting is actually from the &#8220;client-server&#8221; wrapper that is generating the code to marshal and unmarshal function calls between ParaView client and server. &nbsp;I agree that the problem is most likely caused by the use of STL classes. &nbsp;The parser does not handle these, so you will have to wrap any portion of your header using STL with //BTX &amp; //ETX flags. &nbsp;That is, have a line &#8220;//BTX&#8221; at the start of the portion you want the wrapper to ignore and a line &#8220;//ETX at the end.<BR>
<BR>
BTW, when including an STL header file, you should prefix the file with vtkstd. &nbsp;That is, use &#8220;#include &lt;vtkstd/vector&gt;&#8221; and &#8220;#include &lt;vtkstd/string&gt;&#8221;. &nbsp;The VTK build creates these special include files to help make your STL use more portable. &nbsp;Also, you should prefix all of the STL classes and functions with vtkstd:: rather than std:: (or use the vtkstd namespace in you cxx file). &nbsp;Again, VTK creates the vtkstd namespace to be portable to STL implementations that do not use the std namespace correctly.<BR>
<BR>
-Ken<BR>
<BR>
On 1/9/09 7:43 AM, &quot;Paul Edwards&quot; &lt;<a href="paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>One problem is you need the std:: prefix before string and vector.<BR>
<BR>
Regards,<BR>
Paul<BR>
<BR>
2009/1/9 Natalie Happenhofer &lt;<a href="nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>&gt;<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi!<BR>
I encounter yet another problem which is, I believe, independent from the library-linking issue. <BR>
Trying to build my code (vtkVdcWriter.h and vtkVdcWriter.cxx) within paraview and expecting all the linker errors, I get the following error:<BR>
<BR>
[99%] Generating vtkVdcWriterClientServer.cxx <BR>
syntax error<BR>
***SYNTAX ERROR found in parsing the header file C:/ParaviewSource/ParaView3/Plugins/vtkVdcWriter.h before line 49 ***<BR>
...<BR>
<BR>
I believe it&acute;s an error thrown by the Qt. Does anyone know what&acute;s the problem here (the vtkVdcWriter.h file is posted below) or at least, how I can get an error message which is at least a bit more specific?<BR>
<BR>
vtkVdcWriter.h:<BR>
#ifndef _vtkVdcWriter_h<BR>
#define _vtkVdcWriter_h<BR>
<BR>
#include &quot;vtkProcessObject.h&quot;<BR>
#include &quot;vtkDataSet.h&quot;<BR>
#include &lt;vector&gt;<BR>
#include &lt;string&gt;<BR>
<BR>
<BR>
class VTK_EXPORT vtkVdcWriter : public vtkProcessObject<BR>
{<BR>
public:<BR>
&nbsp;&nbsp;static vtkVdcWriter *New();<BR>
&nbsp;&nbsp;vtkTypeRevisionMacro(vtkVdcWriter,vtkProcessObject);<BR>
&nbsp;&nbsp;void PrintSelf(ostream&amp; os, vtkIndent indent);<BR>
<BR>
&nbsp;&nbsp;//Description:<BR>
&nbsp;&nbsp;// Set or get the file name of the vdc file.<BR>
&nbsp;&nbsp;virtual void SetFileName(const char* fname);<BR>
&nbsp;&nbsp;virtual const char* GetFileName();<BR>
<BR>
&nbsp;&nbsp;//Description:<BR>
&nbsp;&nbsp;// Set the input data set.<BR>
&nbsp;&nbsp;virtual void SetInput(vtkDataSet* ds);<BR>
<BR>
&nbsp;&nbsp;// Description:<BR>
&nbsp;&nbsp;// Get any input of this filter.<BR>
&nbsp;&nbsp;vtkDataObject *GetInput(int idx);<BR>
&nbsp;&nbsp;vtkDataObject *GetInput() <BR>
&nbsp;&nbsp;&nbsp;&nbsp;{return this-&gt;GetInput( 0 );}<BR>
<BR>
&nbsp;&nbsp;//Description:<BR>
&nbsp;&nbsp;// Write the XDMF file.<BR>
&nbsp;&nbsp;void Write();<BR>
<BR>
&nbsp;&nbsp;//routines from vapor vdfcreate<BR>
&nbsp;int cvtToOrder(const char *from, void *to);<BR>
&nbsp;int cvtToExtents(const char *from, void *to);<BR>
&nbsp;int cvtTo3DBool(const char *from, void *to);<BR>
&nbsp;int getUserTimes(const char *path, vector &lt;double&gt; &amp;timevec); <BR>
<BR>
&nbsp;int WriteVDF(unsigned int* dims, int numts, int level, string coordsystem, string metafilename, string var);<BR>
<BR>
<BR>
&nbsp;&nbsp;protected:<BR>
&nbsp;&nbsp;vtkVdcWriter();<BR>
&nbsp;&nbsp;~vtkVdcWriter();<BR>
<BR>
&nbsp;&nbsp;vtkSetStringMacro(FileNameString);<BR>
&nbsp;&nbsp;vtkSetStringMacro(MetaFileName);<BR>
&nbsp;&nbsp;vtkSetStringMacro(DataFileName);<BR>
&nbsp;&nbsp;char *FileNameString;<BR>
&nbsp;&nbsp;char *MetaFileName;<BR>
&nbsp;&nbsp;char *DataFileName;<BR>
};<BR>
#endif /* _vtkVdcWriter_h */<BR>
<BR>
<BR>
Could it be a problem using STL-classes here?<BR>
<BR>
thx for any piece of advice,<BR>
<FONT COLOR="#888888">Natalie<BR>
</FONT><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="100%">&iexcl;Ingresa ahora a MSN! &iquest;Quieres saber c&oacute;mo va a estar el clima ma&ntilde;ana? &nbsp;&lt;<a href="http://tiempo.latam.msn.com/">http://tiempo.latam.msn.com/</a>&gt; <BR>
<BR>
_______________________________________________<BR>
ParaView mailing list<BR>
<a href="ParaView@paraview.org">ParaView@paraview.org</a><BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>