Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: gfortran libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gfortran libraries



/usr/bin/ld: warning can't open dynamic library: /libgcc_s.1.dylib referenced from: /usr/local/lib/gcc/powerpc-apple- darwin8.9.0/4.3.0/../../../libgfortran.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)

This is a red herring. It is not the cause of the problem and can safely be ignored.


% ./readavg
At line 77 of file readavg.f90 (unit = 1, file = ' ')
Fortran runtime error: File ' ' does not exist

Just a sanity check: if, just before line 77, you print the content of the variable that contains your filename, is it non-empty?


If I introduce the -static option, I get this error:

% gfortran -o readavg readavg.f90 -static
/usr/bin/ld: can't locate file for: -lcrt0.o

Apple don't provide startup files suitable for static linking in their developer tools, so no static linking on Mac OS. This is not Fortran-specific.




FX

--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Fortran-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >gfortran libraries (From: Chris <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.