NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] Error compiling an application using netcdf-1 interface with netcdf-2 installed

Hello,

Here, at CLS we have a module which extends (and simplify for our
applications) udunits and it as been ported to udunits-2.
As a transistion, there is also the old one (while applications are
ported) and they use udunits.h.

When compiling I have errors because 2 functions which don't have any
parameter don't have 'void' as parameter description (we use -Werror as
gcc flags).

I don't know if you plan to fix this but as attachment there is the
patch which corrects the functions definitions.

Cheers,
Philippe
-- 
Philippe Poilbarbe - CLS Space Oceanography Division

--- lib/udunits.h.orig 
+++ lib/udunits.h 
@@ -72,6 +72,7 @@
  * Indicate if the units(3) package has been initialized.
  */
 extern int     utIsInit        PROTO((
+    void
 ));
 
 /*
@@ -246,7 +247,7 @@
 /*
  *     Terminate use of this package.
  */
-extern void    utTerm          PROTO(());
+extern void    utTerm          PROTO((void));
 
 #ifdef __cplusplus
 }
  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: