计算化学公社

标题: a compiled fortran program under cygwin won't work in another windows machine [打印本页]

作者
Author:
maximos    时间: 2021-7-3 03:24
标题: a compiled fortran program under cygwin won't work in another windows machine
本帖最后由 maximos 于 2021-7-3 03:26 编辑

Hello, how's it going everybody?
I compiled a program using gfortran under cygwin and i get my executable (.exe), and the program work perfectly, but when i transfered the program to another windows machine with the necessary Dll's file, the program won 't work and give the following error.

(, 下载次数 Times of downloads: 24)
I tried so many tricks from the internet and all of them failed, I hope you can help me in this issue.

Many thanks in advance

作者
Author:
sobereva    时间: 2021-7-3 03:29
Please check line 268 of extract.f90, it seems that there is a file operation error about sym.dat
作者
Author:
maximos    时间: 2021-7-3 04:41
sobereva 发表于 2021-7-3 03:29
Please check line 268 of extract.f90, it seems that there is a file operation error about sym.dat

The line 268 contain: open(unit=1, file='sym.dat', status='new', form='formatted').I don't know what's the problem.
作者
Author:
sobereva    时间: 2021-7-3 05:35
status='new' indicates that sym.dat must be nonexistent before using this code. If there is sym.dat in your folder, delete it before running the code. If you don't find the sym.dat, replace 'new' with 'replace' and then recompile the code and try again.
作者
Author:
abin    时间: 2021-7-3 09:47
Try docker container.
作者
Author:
maximos    时间: 2021-7-5 00:30
sobereva 发表于 2021-7-3 05:35
status='new' indicates that sym.dat must be nonexistent before using this code. If there is sym.dat  ...

Thank you very much, the program work perfectly.




欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3