Compiling Errors

On Thu, 18 Mar 1999 at 15:23:18 +0100 (MET) Agustin Lobo wrote:

1. Do we need the Motif include files? I'm not able to
find the directory.

No.

2. X library: we have:

/usr/X11R6/lib

3. We get warnings with the math lib:
I answered "n" as these were just Warnings, correct?

"n" is fine. The math library checker needs to #include <math.h>
but it doesn't. It also doesn't use pow() correctly, so maybe
it's best that it doesn't know any better.

4. TERMLIB:
5. Same thing for curses:
CURSES [-lcurses] :

You probably have libncurses, instead. Try '-lncurses'

6. Should we use gcc or cc?

There is probably no difference between them.

7. How was the command to run GISGEN and get the output bith to the
terminal and to a file? (We are using bash, by the way, is it
better than csh?).

./GISGEN.alpha | tee 2>&1 > errorfile

(./GISGEN.alpha > errorfile 2>&1 &); tail -f errorfile

No opinions on bash/csh.

Bill Hughes

On Thu, Mar 18, 1999 at 06:35:52PM -0600, Bill Hughes wrote:

On Thu, 18 Mar 1999 at 15:23:18 +0100 (MET) Agustin Lobo wrote:
> 7. How was the command to run GISGEN and get the output bith to the
> terminal and to a file? (We are using bash, by the way, is it
> better than csh?).

./GISGEN.alpha | tee 2>&1 > errorfile

This doesn't work in bash, according to the man page.

(./GISGEN.alpha > errorfile 2>&1 &); tail -f errorfile

Should work.

What about:
  { ./GISGEN.osf1 2>&1 ; } | tee -a errorfile

(-a is only for appending to errorfile)

No opinions on bash/csh.

bash is (almost in any case) better as csh, especially as
interactive shell. Try filename completion (Tabkey) and Cursorkeys.

Note that /bin/sh on GNU/Linux System might be a bash and not
a real bourne shell.

Bernhard