home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!ucbvax!cel.cummins.com!philip
- From: philip@cel.cummins.com (Philip D. Pokorny)
- Newsgroups: comp.sys.apollo
- Subject: Re: DSEE and f77
- Message-ID: <9209011609.AA01733@cel.cummins.com>
- Date: 1 Sep 92 16:09:50 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 42
-
- Bill Smith asks:
- > It looks like when I do a build that the f77 compiler
- > either dies on the combination of options I give it or if it does work
- > it puts the binary files into the working directory instead of the
- > system where they belong. Then when it tries to link it looks to the
- > system for the object modules,can not find them, and fails. I can
- > manually link the object modules outside DSEE and they seem to work OK
- > so I think it is probably a problem with my model.
- >
- > DEFAULT FOR ?* =
- > SHELL '/bin/csh -f';
- > TRANSLATE
- > f77 -c -g -Asystype,sys5.3 -WO,-nuc -o %RESULT %SOURCE
- ^^ ^^^
- Here's the problem. The man pag for f77 says that -o is where
- to put the FINAL executable (instead of calling it a.out)
- Since you are only compiling (-c) not linking, f77 ignores the
- -o option. What you need to do is use the (-W0,-bx,%RESULT.o)
- option. This uses the -W0 option to pass a "special" option to
- the compiler. The -bx option tells the compiler to place the
- object file in a file with EXACTLY the name %RESULT.o (after
- DSEE substitution...)
-
- SHELL '/bin/csh -f';
- TRANSLATE
- ld %RESULT_OF(?*.f).o -o %RESULT
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Warning... This is HORIZONTAL expansion. It is very easy to
- overflow the DSEE/shell line length limits. It's much safer to
- do something like:
-
- ld \
- %VERTICAL %RESULT_OF(?*.f).o \
- -o %RESULT
-
- > I have called HP/Apollo about the problem but was wondering if any other
- They usually do a pretty good job...
- Sincerely,
- Philip D. Pokorny
- philip@cel.cummins.com
- :)
-
-