One problem is you need the std:: prefix before string and vector.<br><br>Regards,<br>Paul<br><br><div class="gmail_quote">2009/1/9 Natalie Happenhofer <span dir="ltr">&lt;<a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
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´s an error thrown by the Qt. Does anyone know what´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; static vtkVdcWriter *New();<br>&nbsp; vtkTypeRevisionMacro(vtkVdcWriter,vtkProcessObject);<br>&nbsp; void PrintSelf(ostream&amp; os, vtkIndent indent);<br>
<br>&nbsp; //Description:<br>&nbsp; // Set or get the file name of the vdc file.<br>&nbsp; virtual void SetFileName(const char* fname);<br>&nbsp; virtual const char* GetFileName();<br><br>&nbsp; //Description:<br>&nbsp; // Set the input data set.<br>&nbsp; virtual void SetInput(vtkDataSet* ds);<br>
<br>&nbsp; // Description:<br>&nbsp; // Get any input of this filter.<br>&nbsp; vtkDataObject *GetInput(int idx);<br>&nbsp; vtkDataObject *GetInput() <br>&nbsp;&nbsp;&nbsp; {return this-&gt;GetInput( 0 );}<br><br>&nbsp; //Description:<br>&nbsp; // Write the XDMF file.<br>
&nbsp; void Write();<br><br>&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; protected:<br>&nbsp; vtkVdcWriter();<br>&nbsp; ~vtkVdcWriter();<br><br>&nbsp; vtkSetStringMacro(FileNameString);<br>
&nbsp; vtkSetStringMacro(MetaFileName);<br>&nbsp; vtkSetStringMacro(DataFileName);<br>&nbsp; char *FileNameString;<br>&nbsp; char *MetaFileName;<br>&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><div class="WgoR0d"><br><br><hr>¡Ingresa ahora a MSN! <a href="http://tiempo.latam.msn.com/" target="_blank">¿Quieres saber cómo va a estar el clima mañana? </a></div>
</div>
<br>_______________________________________________<br>
ParaView mailing list<br>
<a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><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>