Fortran Coder

查看: 14|回复: 0
打印 上一主题 下一主题

[IDE] visual studio更新了后新建Fortran项目无法编译了

[复制链接]

87

帖子

37

主题

0

精华

专家

F 币
358 元
贡献
223 点
跳转到指定楼层
楼主
发表于 昨天 20:03 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 shrine 于 2025-7-17 22:31 编辑

旧的项目调试编译没有问题,但是新的项目无法编译,显示
error LNK2019: 无法解析的外部符号 WinMain,函数 "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) 中引用了该符号

vs版本是17.14.9 (July 2025),最新的
在输入ifort --version查询Fortran版本的时候,得到如下结果:
ifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows* and Linux* support, new language support, new language features, and optimizations. Use '/Qdiag-disable:10448' to disable this message.
ifort: command line warning #10006: ignoring unknown option '/-version'
ifort: command line error: no files specified; for help type "ifort /help"

啥意思?要转向LLVM-based?这个是不能编译新项目的原因吗?
已安装列表里也没有Fortran编译器




您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2025-7-18 07:56

Powered by Tencent X3.4

© 2013-2025 Tencent

快速回复 返回顶部 返回列表