Compiling after f2c

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

 



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 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