• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Access NetCDF library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access NetCDF library


  • Subject: Re: Access NetCDF library
  • From: Johan Kool <email@hidden>
  • Date: Sun, 13 Apr 2003 14:46:49 +0200

Success!

I am glad to report I succeeded in getting the library to work with my app (for now)! The .mm extension was certainly the key to getting the C++ working within the Objective-C file. In order to acces the NetCDF library import these files into your project:
libnetcdf.a
ncvalues.cpp
ncvalues.h
netcdf.cpp
netcdf.h
netcdfcpp.h

Ofcourse this is after you've compiled the library from the terminal (configure; make). In your code add this line to the top:
#import "netcdfcpp.h"

For some this may be all just plain basics, but for a newbie like me it can be really a brain crusher!

For the more advanced programmers, what does this error mean?
netcdfcpp.h:157: warning: friend declaration requires class-key, i.e. `friend class NcFile'

To Tom: if you can provide more info and/or a glimpse at how you incorporated this functionality without this particular library I'll be certainly interested!

Regards,

Johan Kool
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Access NetCDF library
      • From: Tom Moore <email@hidden>
  • Prev by Date: Re: Adding something to the login items
  • Next by Date: Creating custom table columns.
  • Previous by thread: Re: Access NetCDF library
  • Next by thread: Re: Access NetCDF library
  • Index(es):
    • Date
    • Thread