Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

[udunits] Compiler-Error in udunits2 with compatibility include-file of udunits

I tried to compile a c++-program which uses the old udunits package against the new udunits2 package with the compatible udunits.h.

I got the following compiler error with gcc 4.1.2 (Debian 32bit):

/usr/local/include/udunits.h:57: error: declaration of 'ut_unit* utUnit::ut_unit' /usr/local/include/udunits2.h:17: error: changes meaning of 'ut_unit' from 'typedef union ut_unit ut_unit'


The following program compiles nicely with gcc, but fails with above error with g++:

#include <udunits.h>
int main(int argc, char* args[]) {
}


Best regards,

Heiko

--
Dr. Heiko Klein                              Tel. + 47 22 96 32 58
Development Section / IT Department          Fax. + 47 22 69 63 55
Norwegian Meteorological Institute           http://www.met.no
P.O. Box 43 Blindern  0313 Oslo NORWAY



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the udunits archives: