LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2004, 07:42 PM   #1
himan
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
why doesn't my fortran program compile??


Hi,
I have some Fortran codes and am trying to
compile them using g77 version 2.96 on a linux
machine, but i am getting some error which I am not
able to figure out.

This is what I get when I use
>g77 -e space.f -o space

/usr/bin/ld: warning: cannot find entry symbol
space.f; defaulting to 08048b10
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a(main.o):
In function `main':
main.o(.text+0x2a): undefined reference to `MAIN__'
collect2: ld returned 1 exit status

I shall be grateful to anyone who could be of any
assistance.
thanks.

regards,

himan
 
Old 04-11-2004, 10:43 PM   #2
lazyboy0001
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
why not just

g77 fortrancode.f -o exename

??
I don't know why you need that -e switch
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a question regardin fortran program tal Programming 3 09-17-2007 07:13 AM
how to call C function in FORTRAN program bigapple Programming 5 08-24-2005 12:30 AM
gui for a fortran program kooshball Programming 2 06-06-2005 08:37 AM
how to compile fortran library and wrap it in C/C++ elvislu Programming 1 05-18-2005 01:19 AM
compile( gcc-g77) fortran with fedora core 3 gambato79 Programming 1 05-06-2005 12:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration