- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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
Ссылка скопирована
4 Ответы
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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?
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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.

Ответить
Параметры темы
- Подписка на RSS-канал
- Отметить тему как новую
- Отметить тему как прочитанную
- Выполнить отслеживание данной Тема для текущего пользователя
- Закладка
- Подписаться
- Страница в формате печати