This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

How can I overcome this issue?

Thanks in advance.


       
____________________________________________________________________________________
Sé un Mejor Amante del Cine                         
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]