The NC_SHARE flag can not be accessed from this c++ library. Is there any particular reason for this? You can read more about the NC_SHARE flage [here](https://www.unidata.ucar.edu/software/netcdf/netcdf-4/newdocs/netcdf-c.html#nc_005f_005fcreate).