[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Abou Anber <ahmed@qse.tohoku.ac.jp>] Error Fortran Message



On Thu, 22 Jan 1998, Ben Pfaff wrote:

> Date: Thu, 22 Jan 1998 08:26:17 -0500
> From: Ben Pfaff <pfaffben@pilot.msu.edu>
> To: debian-user@lists.debian.org
> Subject: [Abou Anber <ahmed@qse.tohoku.ac.jp>] Error Fortran Message
> Resent-Date: Thu, 22 Jan 1998 13:19:29 +0000
> Resent-From: debian-user@lists.debian.org
> Resent-cc: recipient list not shown: ;
> 
> For some reason this dude thinks I'm responsible for gcc and g77.  Can
> somebody on the list who knows about FORTRAN please try to help him?
> 
> ------- Start of forwarded message -------
> Date: Thu, 22 Jan 1998 14:59:23 +0900
> From: Abou Anber <ahmed@qse.tohoku.ac.jp>
> Message-Id: <199801220559.OAA03747@bohr.qse.tohoku.ac.jp>
> To: pfaffben@pilot.msu.edu
> Subject: Error Fortran Message
> 
> Dear Sir:
>    I installed debian software for linux in my machine and it's ok. when
> I try to install gcc_2.7.2.1-8 with g77_0.5.20-1.deb also it's ok. For compile
> Fortran program contain only main program, g77 or f77 command can compile and
> I get the execute file for this program. But when I try to compile subroutine
> ex. aa.f to get the execute file aa.o by the command f77 aa.f or g77 aa.f I

aa.o is not the execute file, it is object file.

To get object file from .f file:

g77 -c aa.f

> get error message which is {/usr/lib/gcc-lib/i486-linux/2.7.2.1/libf2c(main.o):
> in function "main": main.o(.text+ox154): undefined reference to "MAIN_"}. 

it means there is no main program with "program" statement int the
aa.f

> At
> the same time I can't execute any program contain main program with subroutine
> ..could you please tell me how can I solve this problem.

regards

OK


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: