Fortran Coder

标题: ntel® Fortran Compiler编译fortran程序报错 [打印本页]

作者: phantom    时间: 2023-9-6 18:45
标题: ntel® Fortran Compiler编译fortran程序报错
系统:win10
编译命令:ifort Console1.f90
文件代码:
[Fortran] 纯文本查看 复制代码
!  Console1.f90
!
!  FUNCTIONS:
!  Console1 - Entry point of console application.
!

!****************************************************************************
!
!  PROGRAM: Console1
!
!  PURPOSE:  Entry point for the console application.
!
!****************************************************************************

    program Console1

    implicit none

    ! Variables

    ! Body of Console1
    print *, 'Hello World'

    end program Console1

报错信息:
C:\Users\Administrator\source\repos1\Console1\Console1>ifort Console1.f90
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on IA-32, Version 2021.10.0 Build 20230609_000000
Copyright (C) 1985-2023 Intel Corporation.  All rights reserved.

Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

锘?out:Console1.exe
-subsystem:console
Console1.obj
LINK : fatal error LNK1104: cannot open file "锘?out:Console1.exe"

有大佬知道什么原因吗? 感谢

作者: fcode    时间: 2023-9-7 09:00
这个问题我没遇到过,不过。你这个link的版本6.0是不是有点太低了?
还有你是在命令行里执行的吗?有没有提前执行 ipsxe-comp-vars.bat (类似名字)的批处理设置环境?
Visual Studio 安装了吗?什么版本?
作者: phantom    时间: 2023-9-7 16:37
fcode 发表于 2023-9-7 09:00
这个问题我没遇到过,不过。你这个link的版本6.0是不是有点太低了?
还有你是在命令行里执行的吗?有没有提 ...

大佬怎么升级link版本啊 visual Studio是2019 没有 ipsxe-comp-vars.bat这个程序啊




欢迎光临 Fortran Coder (http://bbs.fcode.cn/) Powered by Discuz! X3.2