Sorry,
hope I may contact you again. Now, I also need hdf5 for gfortran, so I
installed
hdf5.7-gfortran.
Using both hdf5 and netcdf in one program I compile it with
gfortran -o simple simple.f90 -lnetcdf -lnetcdff -I/sw/opt/netcdf7/include
-L/sw/opt/netcdf7/lib -lhdf5 -lhdf5_fortran -I/sw/include -L/sw/lib
..this works. However, if I try to run the program I get
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5T.c line 1676 in H5Tcopy(): not a datatype or dataset
major: Invalid arguments to routine
minor: Inappropriate type
I would be very happy about some help. (Its the last package I need to install.
Promised!)
Cheers,
Silke.
Am 13.02.2012 um 02:50 schrieb Silke Trömel:
> Thanks a lot for your quick help!! The order is not important but '-lnetcdff'
> was missing!
> It works!
> Cheers,
> Silke
>
>
> Am 13.02.2012 um 01:15 schrieb Alexander Hansen:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 2/12/12 6:10 PM, Silke Trömel wrote:
>>> Dear Fink-users, I installed netcdf7-gfortran ( on MAC Version
>>> 10.7.2) but receive the message 'Fatal Error: Reading module
>>> netcdf at line 25 column 2: Expected string' when I try to compile
>>> the example code simple.f90 typing gfortran -o simple simple.f90
>>> -lnetcdf -I/sw/opt/netcdf7/include -L/sw/opt/netcdf7/lib
>>>
>>> Does anybody know what may be wrong with the module file and how
>>> to proceed? I made no changes to NETCDF.mod. Thanks in advance,
>>> Silke
>>>
>>>
>>
>> We don't do anything special to the .mod file.
>>
>> Is there a reason that in your compiler command you have -lnetcdf
>> _before_ -L/sw/opt/netcdf7/lib rather than _after_ it? Also, the
>> fortran bindings are in a separate library, so I'd expect that you
>> should have -lnetcdff, too.
>> - --
>> Alexander Hansen, Ph.D.
>> Fink User Liaison
>> http://finkakh.wordpress.com/
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.11 (Darwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAk84VhcACgkQB8UpO3rKjQ/pjgCffTHB4/m8maGsarDbEYiBtttL
>> QisAn17cyUuQ99MLa8qYzVVd3EvlgY6W
>> =wuJI
>> -----END PGP SIGNATURE-----
>
> Dr. Silke Trömel
> Meteorologisches Institut
> der Universität Bonn
> Auf dem Hügel 20
> 53121 Bonn
> Tel: +49 (0)228 735779
> Fax: +49 (0)228 735188
> http://www.meteo.uni-bonn.de/mitarbeiter/stroemel
> http://www.herz-tb1.uni-bonn.de
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2_______________________________________________
> Fink-users mailing list
> [email protected]
> List archive:
> http://news.gmane.org/gmane.os.macosx.fink.user
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-users
Dr. Silke Trömel
Meteorologisches Institut
der Universität Bonn
Auf dem Hügel 20
53121 Bonn
Tel: +49 (0)228 735779
Fax: +49 (0)228 735188
http://www.meteo.uni-bonn.de/mitarbeiter/stroemel
http://www.herz-tb1.uni-bonn.de
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users