[netcdf-porting] avoiding MSC_EXTRA definition

dennis neal neon10 at hotmail.com
Wed Apr 30 12:52:56 MDT 2008


Hello;

I have been able to write the LinkDef.h header file needed to generate a dictionary using rootcint  (from CERN) in order to create a .so to include in ROOT. When I attempt to run the Ed H. test program I get an error 

extern MSC_EXTRA int err.

Reading the netcdf.h header file, it seems that, if one wants a DLL, MSC_EXTERN and then EXTERNL are defined. I do NOT want MSC_EXTERN defined.

How do I stop that from happening? I tried a #ifndef __GNUC__ macro
but I need V2 (I eventually want to use AIA ANDI, built on netcdf V2) and it appears that some other things depending on EXTERNL being defined are needed by all operating systems (warning above the CRAYMPP /* */).

Perhaps this is why Cygwin can not built the c++ interface? (Isnt the C++ interface dependent on V2 code?)

Where is creating a DLL defined? I reran configure with shared libraries as NO but still this code keeps being read. Why, using gcc, is an MSC variable created? Doesnt MSC mean Microsoft C?

Any help I can get with this will be greatly appreciated and of course acknowledged in the final code.

Thank you.

_________________________________________________________________
Make i'm yours.  Create a custom banner to support your cause.
http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=TXT_TAGHM_MSN_Make_IM_Yours
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdf-porting/attachments/20080430/1e193382/attachment.html 


More information about the netcdf-porting mailing list