ifc7-7.1-8 problems with Red Hat 8.0

ifc7-7.1-8 problems with Red Hat 8.0

Hi, I am running Red Hat with all the latest upgrades.

I installed ifc7-7.1-8 and tried to run ifc. I am getting following errors:

(27)# ifc
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'

My glibc version is:

(30)# rpm -qa | grep glibc

What can I do?

3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

What were you expecting the compiler to do, when it has nothing to compile?
By default, ifc invokes the linker, which is warning (accurately) that you don't have a main program. You can suppress the link step with -c, in which case the compiler will just tell you that you have no files specified. (This is similar to what happens when you invoke g77 with no arguments).
If you supply a file to compile, e.g. ifc -c test.f, then both these messages will go away.
If you just want to get version information, you can type ifc -V. This still gives the message about no main program, but this will probably be suppressed in an upcoming compiler version.
I suppose that ifc without arguments could be made to behave the same way as ifc -V. Is that what you were expecting?


Thanks Martin, I was just about to post the same issue. Let me just point out though that some competitors (lf95 for instance) would have displayed options informations if invoked similarly...

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen