[vtk-developers] NetCDF mangling, extra underscores?

Sean McBride sean at rogue-research.com
Tue Aug 7 14:16:57 EDT 2012


Hi all,

I'm having some link errors in my app after updating some of my dependences (specifically NetCDF, ITK, VTK, etc.).

I think vtk_netcdf_mangle.h has some mistakes...  some functions start with underscore and some do not, ex:

#define _nc_get_att_uint vtk_netcdf__nc_get_att_uint

vs

#define nc_get_att_int vtk_netcdf_nc_get_att_int

OS X prepends symbols with underscore, so I suspect someone (hopefully it wasn't me, hehe) ran the procedures to generate vtk_netcdf_mangle.h on OS X but forget to remove those underscores.

My untested patch is here:
<http://review.source.kitware.com/6868>

Sorry for not testing, but I have a flight to catch... If someone approves/applies this, could you do so in the 5.x branch too?

Thanks,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the vtk-developers mailing list