This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Linking problem on Mac OS 10.5
- From: Ralph Kube <ralphkube at googlemail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Wed, 10 Mar 2010 09:57:12 +0100
- Subject: Linking problem on Mac OS 10.5
Hello people,
I am new to gfortran and I have a linking problem.
My program compiles correctly, that is when I execute gfortran -c ... I
get an object file. The error message I get is the following:
/usr/local/libexec/gcc/i386-apple-darwin9.7.0/4.4.1/collect2 -dynamic
-arch i386 -macosx_version_min 10.5.8 -weak_reference_mismatches
non-weak -o 2dads-per.o -lcrt1.10.5.o -L/opt/local/lib -L/Users/ralph
/uni/2dads-per -lgomp -L/usr/local/lib/gcc/i386-apple-darwin9.7.0/4.4.1
-L/usr/local/lib/gcc/i386-apple-darwin9.7.0/4.4.1/../../.. -lgomp -lm
-lfftw3 -lfftw3_threads -lhdf5 -rpath /var/folders
/3G/3G+TwxgbHQyG7el8M4RNEU+++TI/-Tmp-//ccd6eVWd.o -lgfortranbegin
-lgfortran -lgcc_s.10.5 -lgcc -lSystem
Undefined symbols:
"_MAIN__", referenced from:
_main in libgfortranbegin.a(fmain.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [gnucomp] Error 1
Any ideas?
Cheers, Ralph