Re: cfalrtl: undefined reference to `MAIN__'
Adam C Powell IV wrote:
Greetings,
So I finally got cfal(rtl) working properly, and uploaded. And it
works, for small programs. Cool!
So now I'm trying to get PETSc working with cfal/ccc, which involves
building C binaries linked against C and FORTRAN objects in libs built
by ccc and fort. But I keep running up against:
/usr/lib/libfor.so: undefined reference to `MAIN__'
Problem solved. When using a C main(), do *not* link (ccc) with -lfor
-lutil -lFutil, even if you have objects with Fortran subroutines. Just
link -lcpml.
Hope this helps someone,
--
-Adam P.
GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6
Welcome to the best software in the world today cafe!
<http://lyre.mit.edu/%7Epowell/The_Best_Stuff_In_The_World_Today_Cafe.ogg>
Reply to: