output different on home linux and on ISP.

Paul D. Smith psmith@baynetworks.com
Wed Sep 29 09:49:00 GMT 1999


%% Neil <neil@pacifier.com> writes:

  n> However, on my home RH Linux 5.2 system, the same code compiles
  n> successfully but the output is different:

  n> It asks "What number?"
  n> I give a number then it returns me to the prompt.

  n> Then back to the prompt. What in the world is going on?

You didn't give enough info.  In particular, you didn't show a link line
(e.g., what you named your program) or how you invoked it.

Whenever you're testing programs like this, always always always always
specify a specific _path_ to it.

Instead of:

  $ myprog

always write:

  $ ./myprog

Then you _know_ what program you're running, instead of whatever program
by that name your shell happens to find first in your PATH.

Does that help?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@baynetworks.com>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.


More information about the Gcc-help mailing list