fortran compiler can't find -lfor
keen
c3p3o3@yahoo.com
Mon Dec 3 20:18:00 GMT 2007
Janne Blomqvist-3 wrote:
>
> keen wrote:
>> Hi,
>>
>> I try to compile a fortran program with 'make':
>>
>> gcc -o ran ran.o random.o ran1.o ranmar.o -lfor -lm
>> /usr/bin/ld: cannot find -lfor
>>
>> I've already installed several libs like gcc-multilib and all gcc-fortran
>> stuff I've found.
>> I don't know what to do. All advice is appreciated.
>>
>> kind regards
>>
>
> Easiest way would be to use gfortran to drive the linker rather than gcc.
>
> --
> Janne Blomqvist
>
>
>
>
>
Thanks for the help Janne Blomqvist and Tobias Schlüter, it works !
--
View this message in context: http://www.nabble.com/fortran-compiler-can%27t-find---lfor-%0D%0A-usr-bin-ld%3A-cannot-find--lfor-tf4938937.html#a14137940
Sent from the gcc - fortran mailing list archive at Nabble.com.
More information about the Fortran
mailing list