- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
I'm newbie in fortran and need some advice about compilation old code.
I've got big old project and sources and compiled binaries which properly work under dos. but when I compiling (without compilation error) this sources in CVF program not working like DOS versions. As usual all errors apears when reading files with data.
So what I have to do to compile this code.
Regards,
Dmitriy.
I'm newbie in fortran and need some advice about compilation old code.
I've got big old project and sources and compiled binaries which properly work under dos. but when I compiling (without compilation error) this sources in CVF program not working like DOS versions. As usual all errors apears when reading files with data.
So what I have to do to compile this code.
Regards,
Dmitriy.
Message Edited by dumpty@sun-tel.net on 12-02-2004 01:18 PM
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is likely that the problem is not "old F77" code but rather code (or data) that depends on Microsoft DOS Fortran features.
If you are using the visual development environment, try setting Projects..Settings..Fortran..Compatibility..PowerStation..I/O Format From the command line, that's /fpscomp:ioformat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your kindly reply Steve.
Is this have to work with direct access files too?
Is this have to work with direct access files too?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you're reading old direct access files, select the "General" (/fpscomp:general) option too. Hmm, you may also need, under Data, "Use bytes as RECL= unit for unformatted files" (/assume:byterecl).
Message Edited by sblionel on 12-02-2004 04:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that the DOS code was 16-bit, and thus the data files probablyassume 16-bit integers and so forth, whereas CVF (and IVF) are intrinsically 32-bit. This sort of issue can be dealt with by modifying the file read routines to use explicitly declared 16-bit arrays (or whatever) for accessing the old files.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page