compiling nrtype.f90


Tobywhc
04-02-2008, 04:26 AM
I've met a problem on compiling nrtype.f90 with gfortran, and returns the following error message:

cheng@cheng-laptop:~$ gfortran nrtype.f90
/usr/lib/gcc/i486-linux-gnu/4.2.1/libgfortranbegin.a(fmain.o): In function `main':
(.text+0x23): undefined reference to `MAIN__'
collect2: ld returned 1 exit status
cheng@cheng-laptop:~$

can anyone help me?

davekw7x
04-02-2008, 09:09 AM
...anyone help...


cheng@cheng-laptop:~$ gfortran -c nrtype.f90


Creates nrtype.mod and nrtype.o for the nrtype module so it that can be used and linked with other programs.


Regards,

Dave

Tobywhc
04-07-2008, 04:11 AM
Am i going to create nrtype.mod and nrtype.o by compiling nrtype.f90 or by other means?

davekw7x
04-07-2008, 08:30 AM
Am i going to create nrtype.mod and nrtype.o by compiling nrtype.f90 or by other means?

Did you try the command that I showed? Didn't you get nrtype.mod and nrtype.o?

Regards,

Dave