This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Mike, Thanks for sending this in. > Hello Udunits Team, > > I have downloaded the current udunits-2 repository from > https://github.com/Unidata/UDUNITS-2. > > To build the libraries with VC++2013 using CMAKE, I had to extend the file > scanner.c in line 1041 with the following code: > > (These lines were still included in this file in previous version (2.2.19)) > > #ifdef WIN32 > #define YY_NO_UNISTD_H > #endif > > Additionally, I had to put the files udunits2.html, udunits2.info, > udunits2lib.html, udunits2lib.info, udunits2prog.html, udunits2prog.info > into the corresponding folders. > > After these modifications I built the libraries as shared and static > versions in 32 and 64 bit mode. > > Best regards > > Mike Eichhorn Regards, Steve Emmerson Ticket Details =================== Ticket ID: SMH-225150 Department: Support UDUNITS Priority: Normal Status: Closed