[Paraview] plugin compilation error "Syntax Error found in parsing .."

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Oct 5 08:25:42 EDT 2010


You'll have to BTX/ETX out this method as well. Functions with stl
objects as arguments cannot be wrapped.

Utkarsh

On Tue, Oct 5, 2010 at 5:31 AM, Felipe Bordeu
<felipe.bordeu at ec-nantes.fr> wrote:
> Hi,  I am trying  to compile my (XDMF based) reader with de development
> version of paraview, but a get a parser error:
>
> [  5%] Generating moc_PGDReader_Plugin.cxx
> [ 10%] Generating vtkPGDReaderClientServer.cxx
> syntax error
> *** SYNTAX ERROR found in parsing the header file
> /home/fbordeu/projects/Paraview_PGD_Reader/vtkPGDReader.h before line 234
> ***
> make[2]: *** [vtkPGDReaderClientServer.cxx] Erreur 1
> make[1]: *** [CMakeFiles/PGDReader.dir/all] Erreur 2
> make: *** [all] Erreur 2
>
> this is the problematic line:
>
>    void construct_scalar_point_fields_2(std::vector<vtkUnstructuredGrid * >&
> alldata, vtkIdList *ptIdsPGD, std::vector<int> &spacedata);
>
> I already use the //BTX and the //ETX for the variable declaration (like in
> http://paraview.org/Wiki/Plugin_HowTo#SYNTAX_ERROR_found_in_parsing_the_header_file)
>
> I think is the vector class that causing the problem, because if a put
>
> void construct_scalar_point_fields_2(vtkUnstructuredGrid *  alldata,
> vtkIdList *ptIdsPGD, int &spacedata);  (of course my code does not work )
>
> the parser work fine.
>
> Any ideas??.
>
> Thanks,
>
> --
>
> Felipe Bordeu Weldt
> Ingénieur de Recherche
> -------------------------------------
> Tél. : 33 (0)2 40 37 16 57
> Fax. : 33 (0)2 40 74 74 06
> Felipe.Bordeu at ec-nantes.fr
> Intitut GeM - UMR CNRS 6183
> École Centrale de Nantes
> 1 Rue de La Noë, 44321 Nantes, FRANCE
> -------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list