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"><<a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>></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 "vtkProcessObject.h"<br>#include "vtkDataSet.h"<br>#include <vector><br>#include <string><br><br><br>
class VTK_EXPORT vtkVdcWriter : public vtkProcessObject<br>{<br>public:<br> static vtkVdcWriter *New();<br> vtkTypeRevisionMacro(vtkVdcWriter,vtkProcessObject);<br> void PrintSelf(ostream& os, vtkIndent indent);<br>
<br> //Description:<br> // Set or get the file name of the vdc file.<br> virtual void SetFileName(const char* fname);<br> virtual const char* GetFileName();<br><br> //Description:<br> // Set the input data set.<br> virtual void SetInput(vtkDataSet* ds);<br>
<br> // Description:<br> // Get any input of this filter.<br> vtkDataObject *GetInput(int idx);<br> vtkDataObject *GetInput() <br> {return this->GetInput( 0 );}<br><br> //Description:<br> // Write the XDMF file.<br>
void Write();<br><br> //routines from vapor vdfcreate<br> int cvtToOrder(const char *from, void *to);<br> int cvtToExtents(const char *from, void *to);<br> int cvtTo3DBool(const char *from, void *to);<br> int getUserTimes(const char *path, vector <double> &timevec); <br>
<br> int WriteVDF(unsigned int* dims, int numts, int level, string coordsystem, string metafilename, string var);<br><br><br> protected:<br> vtkVdcWriter();<br> ~vtkVdcWriter();<br><br> vtkSetStringMacro(FileNameString);<br>
vtkSetStringMacro(MetaFileName);<br> vtkSetStringMacro(DataFileName);<br> char *FileNameString;<br> char *MetaFileName;<br> 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>