phantom 发表于 2023-9-6 18:45:56

ntel® Fortran Compiler编译fortran程序报错

系统:win10
编译命令:ifort Console1.f90
文件代码:
!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:23

这个问题我没遇到过,不过。你这个link的版本6.0是不是有点太低了?
还有你是在命令行里执行的吗?有没有提前执行 ipsxe-comp-vars.bat (类似名字)的批处理设置环境?
Visual Studio 安装了吗?什么版本?

phantom 发表于 2023-9-7 16:37:22

fcode 发表于 2023-9-7 09:00
这个问题我没遇到过,不过。你这个link的版本6.0是不是有点太低了?
还有你是在命令行里执行的吗?有没有提 ...

大佬怎么升级link版本啊 visual Studio是2019 没有 ipsxe-comp-vars.bat这个程序啊
页: [1]
查看完整版本: ntel® Fortran Compiler编译fortran程序报错