Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: gfortran: cannot redirect output (errors and warnigns) )with
gabsata@gmail.com wrote:
> When I compile my code and try to redirect all the errors and warnings
> from the screen to a file using ">file" in ms-dos. e.g. gfortran
> funcion.f90>file.txt
>
> I get an empty file, and the errors and warnings of the compiler just
> appear on the screen.

This indicates that the errors and warnings of the compiler are getting
sent to standard error, not standard output.  Thus, the ">" operator
does not redirect them, as it only redirects standard output.

To redirect standard error in the DOS shell, use the "2>" operator
instead of the ">" operator, like so:

gfortran function.f90 2>file

This is a DOS shell thing that has nothing to do with gfortran, really,
but is something that occurs for any program that prints its output to
the standard error stream.

- Brooks


--
The "bmoses-nospam" address is valid; no unmunging needed.

Report this thread to moderator Post Follow-up to this message
Old Post
Brooks Moses
05-26-06 12:04 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Fortran archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:20 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.