Re: Compiling after f2c

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

 




-----Original Message-----
From: Omar Gutiérrez Arenas <tardebut@xxxxxxxx>
To: gcc-help@xxxxxxxxxxx
Date: Wed, 5 Sep 2007 19:37:25 +0200 (CEST)
Subject: Compiling after f2c

Hello there!

I'm running Fedora 7 on an IBM Station M Pro 9229.
I want to compile a utility from NetLib (Dierckx)
after translating it from source Fortran 77 to C using
f2c. The original code is composed by the high-level
routine concon.f that has dependency on 7 subrutines.
For translating the 8 .f files into .c files I used,

[root@interaction2 Dierckx]# f2c -A *.f

and the respective .c files were produced. However,
when I tried to compile them with

[root@interaction2 Dierckx]# cc -o dierckx *.c -lf2c
-lm

I got the error:

Code:

/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libf2c.so:
undefined reference to `MAIN__' collect2: ld returned
1 exit status


_______________________
You may have to define your issue better. You want to use f2c translated source without using the f2c main.o or the f2c link script, normally named fc?
You're probably pretty much on your own; I never heard of anyone using the old f2c on x86-64.
If you don't want to translate fully to C, nor use all the libraries of f2c, why not use gfortran?

Tim Prince


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux