Subject: linking prob
To: None <>
From: Patrick Welche <>
List: current-users
Date: 08/17/2004 17:09:48
I have some code I last compiled in July 2000. I just tried with
yesterday's CVS code and got at the linking stage:

f77 -O -g -c /home/prlw1/minp/gulp1.2/angle.f
cc -O2 -g -pipe   -Werror   -Wno-error -DLINUX    -c    /home/prlw1/minp/gulp1.2/cfree.c
#      link  gulp1.2/gulp
cc  -lg2c -lm   -o gulp  -Wl,-rpath-link,/lib:/usr/lib  -L/lib defopt.o fit.o
/usr/lib/crt0.o(.text+0x86): In function `___start':
: undefined reference to `main'

Now, AFAICT, all that changed since then is the compiler (now 3.3.3),
and there are many references to that error in google, but no solutions
that I can see.  Any thoughts on how to fix? or how long before
gcc 3.5 hits NetBSD with fortran 95?