gcc-4.2 setting for gfortran

Jerry DeLisle jvdelisle@verizon.net
Fri Jun 15 19:24:00 GMT 2007


Miroslav ILIAS wrote:
> Dear all,
> 
> on our opteron machine we have this gfortran:
> 
> .gfortran --v
> Using built-in specs.
> Target: x86_64-unknown-linux-gnu
> Configured with:
> /home/tob/projects/gcc-4_2-branch/configure--enable-languages=c,fortran
> --prefix=/projects/tob/gcc-4.2
> Thread model: posix
> gcc version 4.2.0 20070416 (prerelease)
> 
____snip____

> In function `main':
> /home/tob/projects/gcc-4_2-branch/libgfortran/fmain.c:18: undefined reference to
> `MAIN__'
> collect2: ld returned 1 exit status
> 
> On other server with this setting the compilation above works:
> 
I would guess that LD_LIBRARY_PATH environment variable is not set right to 
point to where the new libraries are.

Jerry



More information about the Fortran mailing list