This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: In function `MAIN__' : undefined reference to


It's probably just not in your PATH, so you'll need to specify the path to it when you run it.  For example, if you're trying to run it from the current directory (that is, the directory it's living in), then you can simply specify "./uneqm".  The "./" says that the program is in your current working directory.  Once you put it in a standard location (e.g., /usr/bin, /usr/local/bin, etc.), it will get picked up in your PATH, and you won't need to specify the path to it any more.

Lyle

 -----Original Message-----
From: 	zhu wang [mailto:zhuw@mail.smu.edu] 
Sent:	Thursday, September 04, 2003 7:30 PM
To:	Toon Moene
Cc:	gcc-help@gcc.gnu.org
Subject:	Re: In function `MAIN__' : undefined reference to

On Thu, 2003-09-04 at 16:48, Toon Moene wrote:
> zhu wang wrote:
> 
> > On Thu, 2003-09-04 at 15:23, Toon Moene wrote:
> 
> >>There are some routines (with names UNEQ, DFAULT, OPTIF, CSPEC) that are 
> >>not included in UNEQM.FOR, but used by it.  Try to locate the source for 
> >>them and compile it in combination wiht UNEQM.FOR.
> 
> > This is my first time to compile Fortran code. I got your point but still
> > no clue how to do it. I can locate them but what should I do? Maybe
> > somebody can take a look at those files. I know this maybe too much. 
> 
> Ah, OK.
> 
> Put all the source code of the "missing" routines (one after the other) 
> in a file called A.FOR.
> 
> Then issue the command:
> 
> g77 -o uneqm UNEQM.FOR A.FOR
> 
> That should do it ...

Ok no problem to compile. There is a new problem though. When I issued
uneqm,

bash: uneqm: command not found

I am using Redhat Linux 9. I tried a UNIX system to compile and run
without any trouble. I guess I need some library to get the executable
file to run. But what do I need?

Thanks,
-- 
zhu wang <zhuw@mail.smu.edu>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]