<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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>Natalie<br><br><br /><hr />¡Ingresa ahora a MSN! <a href='http://tiempo.latam.msn.com/ ' target='_new'>¿Quieres saber cómo va a estar el clima mañana? </a></body>
</html>