- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I tried using the FOR_PRINT environment variable to capture Fortran output to a file, and this works OK for all the PRINT/WRITE statements directed to Unit "*" ... but I also wanted all the normal console output (normally WRITE's to unit 6) to go to the same file.
So I coded an OPEN statement that directed Unit=6 to the same file listed in FOR_PRINT (ACCESS='APPEND', STATUS='UNKNOWN', SHARED), and this seems to work for all the Unit=6 writes, but now when I hit a "print *" statement I get an open failure on the file (presumably because of the prior OPEN on unit=6).
Is there any way to get both unit=6 and unit=* writes to go to the same file? Thx.
So I coded an OPEN statement that directed Unit=6 to the same file listed in FOR_PRINT (ACCESS='APPEND', STATUS='UNKNOWN', SHARED), and this seems to work for all the Unit=6 writes, but now when I hit a "print *" statement I get an open failure on the file (presumably because of the prior OPEN on unit=6).
Is there any way to get both unit=6 and unit=* writes to go to the same file? Thx.
Link kopiert
3 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
There is an undocumented switch to enable this: /switch:fe_defunit_56 Add this under "Additional Options" in the command line property page. In a future version, this will be the default.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
That's good to know, thx.
My solution has several Fortran projects (and C) ... does this option get added to the "Additonal Options" for each Fortran project (ie versus just the one for the final link)?
It sounds more compiler-related than linker-related.
My solution has several Fortran projects (and C) ... does this option get added to the "Additonal Options" for each Fortran project (ie versus just the one for the final link)?
It sounds more compiler-related than linker-related.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
It's a compiler option and must be specified for each Fortran project.

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite