f



/usr/lib64/crt1.o(.text+0x21): In function `_start' undefined reference to `main'

When using mpif90 to compile f90 program:
------------------------------------------------------------------------------------------------
[hmli@node44 issem]$ mpif90   x.f90
/usr/lib64/crt1.o(.text+0x21): In function `_start':
: undefined reference to `main

[hmli@node44 issem]$ uname -a
Linux node44 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64
x86_64 x86_64 GNU/Linux

[hmli@node44 issem]$ mpif90 -V
mpif90 for 1.2.7 (release) of : 2005/06/22 16:33:49
pgf90 7.1-1 64-bit target on x86-64 Linux -tp gh-64
-----------------------------------------------------------------------------------------------
export PGI=/data2/software/pgi
export PGI_ROOT=/data2/software/pgi/linux86-64/7.1-1
export PATH=$PGI_ROOT/bin:$PATH
export LM_LICENSE_FILE=/data2/software/pgi/license.dat:
$LM_LICENSE_FILE

#for mpi-pgcc
export MPI_ROOT=/data2/software/pgi/linux86-64/7.1/mpi/mpich
export PATH=$MPI_ROOT/bin:$PATH
export MANPATH=$MPI_ROOT/man:$MANPATH
------------------------------------------------------------------------------------------------

Can you help me?
Thank you.

-- 
0
Li.Huimin (13)
12/27/2007 5:03:22 PM
comp.parallel 2866 articles. 0 followers. Post Follow

1 Replies
3903 Views

Similar Articles

[PageSpeed] 53

In mpif90:
change LDFLAGSBASE="-fpic to LDFLAGSBASE= can solve this problem.

On 12��28��, ����1ʱ03��, HM Li <Li.Hui...@gmail.com> wrote:
> When using mpif90 to compile f90 program:
> ------------------------------------------------------------------------------------------------
> [hmli@node44 issem]$ mpif90   x.f90
> /usr/lib64/crt1.o(.text+0x21): In function `_start':
> : undefined reference to `main
>
> [hmli@node44 issem]$ uname -a
> Linux node44 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64
> x86_64 x86_64 GNU/Linux
>
> [hmli@node44 issem]$ mpif90 -V
> mpif90 for 1.2.7 (release) of : 2005/06/22 16:33:49
> pgf90 7.1-1 64-bit target on x86-64 Linux -tp gh-64
> -----------------------------------------------------------------------------------------------
> export PGI=/data2/software/pgi
> export PGI_ROOT=/data2/software/pgi/linux86-64/7.1-1
> export PATH=$PGI_ROOT/bin:$PATH
> export LM_LICENSE_FILE=/data2/software/pgi/license.dat:
> $LM_LICENSE_FILE
>
> #for mpi-pgcc
> export MPI_ROOT=/data2/software/pgi/linux86-64/7.1/mpi/mpich
> export PATH=$MPI_ROOT/bin:$PATH
> export MANPATH=$MPI_ROOT/man:$MANPATH
> ------------------------------------------------------------------------------------------------
>
> Can you help me?
> Thank you.
>
> --


-- 
0
Li.Huimin (13)
12/28/2007 5:14:00 PM
Reply: