[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20030730: LDM - Linux 2.4.2 - C++ Wrapper



Paul,

> To: address@hidden
> From: "Paul Hamer" <address@hidden>
> Subject: LDM - Linux 2.4.2 - C++ Wrapper
> Organization: NOAA/FSL
> Keywords: ldm ldm.h C++

The above message contained the following:

> Institution: NOAA / OAR FSL
> Package Version: 6.0.14
> Operating System: Linux 2.4.2
> Hardware Information: i686
> Inquiry: Thanks for trying to support C++ in your latest release.
> Unfortunately you cannot have a structure member of the same name as the
> structure in C++ (We're using GCC). So in ldm.h changing
> 
> >       prod_class *class;
> 
> to
> 
> <       prod_class *prod_class;
> 
> does not support C++ wrapping. For our site use I can build against a
> modified ldm.h in the meantime. Please consider an update for the next
> release to remove this problem. Thanks.

I've changed all occurrences of "prod_class" as a variable name into
"clss" or "clssp" (depending on whether or not the variable is a
pointer).  Hopefully, this will make it into the next release.

Regards,
Steve Emmerson