[vtkusers] Compiler Errors 5.10.0 using gcc 4.7.1

Andrew Parker andy.john.parker at googlemail.com
Fri Jun 22 09:23:47 EDT 2012


In file:

Utilities/vtknetcdf/include/ncdispatch.h at line number 129, I changed it
to:

#ifdef USE_NETCDF4
#pragma message("USE_NETCDF4")
extern NC_Dispatch* NC4_dispatch_table;
#else
#pragma message("NOT USE_NETCDF4")
#endif

If I then enable NETCDF_ENABLE_NETCDF4 to ON in ccmake, I now get:

[  1%] Built target vtksys
[  2%] Built target vtkzlib
[  2%] Built target H5detect
[  2%] Built target H5make_libsettings
[ 10%] Built target vtkhdf5
[ 10%] Built target vtkhdf5_hl
[ 11%] Built target vtkjpeg
[ 11%] Built target vtkpng
[ 11%] Built target vtkmkg3states
[ 12%] Built target vtktiff
[ 13%] Built target vtkexpat
[ 13%] Built target vtkfreetype
[ 15%] Built target vtklibxml2
[ 15%] Built target vtkDICOMParser
[ 15%] Built target ProcessShader
[ 15%] Built target vtkMaterialLibraryConfiguredFiles
[ 20%] Built target vtkproj4
[ 20%] Built target lproj
[ 20%] Built target mpistubs
[ 20%] Built target MapReduceMPI
[ 20%] Built target vtkverdict
Scanning dependencies of target vtkNetCDF
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/string.c.o

In file included from /VTK/Utilities/vtknetcdf/libsrc/ncx.h:10:0,

                 from /VTK/Utilities/vtknetcdf/libsrc/string.c:14:
/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/v1hpg.c.o
In file included from /VTK/Utilities/vtknetcdf/libsrc/ncx.h:10:0,

                 from /VTK/Utilities/vtknetcdf/libsrc/v1hpg.c:14:
/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/putget.c.o
In file included from /VTK/Utilities/vtknetcdf/libsrc/ncx.h:10:0,

                 from /VTK/Utilities/vtknetcdf/libsrc/putget.c:15:
/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/attr.c.o
In file included from /VTK/Utilities/vtknetcdf/libsrc/attr.c:9:0:

/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/nc3dispatch.c.o
In file included from /VTK/Utilities/vtknetcdf/include/nc3dispatch.h:40:0,

                 from /VTK/Utilities/vtknetcdf/libsrc/nc3dispatch.c:14:
/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/nc.c.o
In file included from /VTK/Utilities/vtknetcdf/libsrc/nc.c:30:0:

/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/var.c.o
In file included from /VTK/Utilities/vtknetcdf/libsrc/ncx.h:10:0,

                 from /VTK/Utilities/vtknetcdf/libsrc/var.c:12:
/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/dim.c.o
In file included from /VTK/Utilities/vtknetcdf/libsrc/ncx.h:10:0,

                 from /VTK/Utilities/vtknetcdf/libsrc/dim.c:11:
/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc/ncx.c.o
In file included from /VTK/Utilities/vtknetcdf/libsrc/ncx.h:10:0,

                 from /VTK/Utilities/vtknetcdf/libsrc/ncx.c:30:
/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
[ 20%] Building C object
Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc4/nc4dispatch.c.o
In file included from /VTK/Utilities/vtknetcdf/libsrc4/nc4dispatch.c:9:0:

/VTK/Utilities/vtknetcdf/include/ncdispatch.h:133:9: note: #pragma message:
NOT USE_NETCDF4
/VTK/Utilities/vtknetcdf/libsrc4/nc4dispatch.c: In function
‘NC4_initialize’:
/VTK/Utilities/vtknetcdf/libsrc4/nc4dispatch.c:105:5: error:
‘NC4_dispatch_table’ undeclared (first use in this function)
/VTK/Utilities/vtknetcdf/libsrc4/nc4dispatch.c:105:5: note: each undeclared
identifier is reported only once for each function it appears in
make[2]: ***
[Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/libsrc4/nc4dispatch.c.o]
Error 1
make[1]: *** [Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/all] Error 2
make: *** [all] Error 2

Setting it back to off, builds.....clearly it also outputs NOT USE_NETCDF4

Is this any help?  Anything else I can do to help please let me know??

Andy

On 22 June 2012 14:02, David E DeMarle <dave.demarle at kitware.com> wrote:

> Strange:
>
> -I/INSTALLS-based-on-gcc-4.7.1/vtk-5.10.0/Utilities/vtknetcdf/include
> -I/VTK/Utilities/vtknetcdf/include
> is there,
> so the declaration
> ncdispatch.h:129
> #ifdef USE_NETCDF4
> extern NC_Dispatch* NC4_dispatch_table;
> #endif
> should be visible.
>
> Can you verify that USE_NETCDF4 is not defined at that point in your
> compilation?
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
> On Mon, Jun 18, 2012 at 10:05 AM, Andrew Parker
> <andy.john.parker at googlemail.com> wrote:
> > -I/INSTALLS-based-on-gcc-4.7.1/vtk-5.10.0/Utilities/vtknetcdf/include
> > -I/VTK/Utilities/vtknetcdf/include
>



-- 

__________________________________

   Dr Andrew Parker

   Em at il:  andrew.parker at cantab.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120622/a9371e4c/attachment.htm>


More information about the vtkusers mailing list