tardebut
09-05-2007, 10:39 AM
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
8 .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:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libf2c.so: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
How can I overcome this issue?
Thanks in advance.
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
8 .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:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libf2c.so: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
How can I overcome this issue?
Thanks in advance.