On 19/12/13 08:55, Emmanuel Caux wrote: > Hi, > > I have a rather old fortran code that I want to compile on a Mac OS > 10.9. It seems a needed library is no longer available that prevent the > compilation. > > Here are the errors I got when launching gcc-4 my code.f90:
What is your command line? If it is really gcc-4 my_code.f90 then try gfortran my_code.f90 instead. Or, if for some reason you need gcc-4 as linker command, link explicitly with libgfortran.dylib: gcc-4 my_code.f90 -lgfortran > Undefined symbols for architecture x86_64: > "__gfortran_compare_string", referenced from: > _writedown_ in ccKb9lV8.o > _initial_ in ccKb9lV8.o > _psf_ in ccKb9lV8.o > _MAIN__ in ccKb9lV8.o > "__gfortran_concat_string", referenced from: > _k2_ in ccKb9lV8.o > _initial_ in ccKb9lV8.o > "__gfortran_pause_string", referenced from: > _svd_ in ccKb9lV8.o > "__gfortran_set_args", referenced from: > _main in ccKb9lV8.o > "__gfortran_set_options", referenced from: > _main in ccKb9lV8.o > …. > > ld: symbol(s) not found for architecture x86_64 > collect2: error: ld returned 1 exit status These symbols are all defined in libgfortran.dylib. -- Martin ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users