-----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----- ------------------------------------------------------------------------------ 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
