Re: c++ support: will it be in form of a library?

Dan,

> Will the new C++ support be in the form of a library to be compiled
> once and then linked with various user programs?  The present system,
> with a couple of C++ files to be compiled into .o files and then
> linked with the user program, is somewhat inconvenient.  There would
> be a real advantage in writing e.g.
>       g++ -o myprog myprog.c -lnetcdf -lnetcdf-c++ -lm
> in a Makefile.  Plus, unix has a simple system for dealing with
> libSOMETHING.a files (e.g. directories where they are stored), whereas
> there is no well-known system for individual .o files to be linked
> with projects.

The new C++ patch is now available from 

    ftp://ftp.unidata.ucar.edu/pub/netcdf/2.3.2-patch4

and includes changes to the c++-directory Makefile so it builds a library
instead of just object files.  Thanks for the good suggestion.

______________________________________________________________________________

Russ Rew                                                UCAR Unidata Program
russ@xxxxxxxxxxxxxxxx                                          P.O. Box 3000
http://www.unidata.ucar.edu/                          Boulder, CO 80307-3000
______________________________________________________________________________


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