Re: Cannot find -lf2c compilation error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Smith wrote:
I am trying to compile a program which was written in C. (The Makefile
is shown below.) However, when I run the command 'make', I get the
following error:

$ make
... -L./f2c -lf2c -lm
/usr/bin/ld: cannot find -lf2c
...

The f2c library is[*] part of the GNU Fortran runtime support. Are some of your source files written in Fortran? If not, then you don't need the f2c lib; just edit it out of the linking step.

If you do have some Fortran code lurking in there, then you will need the f2c library. It should be included with GNU Fortran, so there may be a problem with the linker options that's preventing ld from finding the library.

[*] Or was--it's been ten years since I used it.

<Joe

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux