Replies: 3 comments 1 reply
-
There should be the corresponding |
Beta Was this translation helpful? Give feedback.
-
I've not been able to reproduce this issue; can you tell us a little more about your environment? Are you running this from the Windows command prompt or via some another shell? Are you able to show us the output with the |
Beta Was this translation helpful? Give feedback.
-
From my experience of using the Windows-ifort environment, you probably haven't fully established the ifort environment. ## The following is the command used in Powershell
## - Introduce only ifort to PATH ❎
>> $Env:PATH += ";C:\Program Files (x86)\Intel\oneAPI\compiler\2022.1.0\windows\bin\intel64\"
>> fpm run --compiler ifort
main.f90 done.
demo.exe failed.
[ 100%]Compiling...
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.6.0 Build 20220226_000000
Copyright (C) 1985-2022 Intel Corporation. All rights reserved.
link: unknown option -- d
Try 'link --help' for more information.
<ERROR> Compilation failed for object " demo.exe "
<ERROR>stopping due to failed compilation
STOP 1
## - Use the CMD script provided by Intel to start the oneAPI environment completely ✅
>> cmd.exe /E:ON /K '"C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 vs2022'
:: initializing oneAPI environment...
Initializing Visual Studio command-line environment...
Visual Studio version 17.2.2 environment configured.
"C:\Program Files\Microsoft Visual Studio\2022\Community\"
Visual Studio command-line environment initialized for: 'x64'
: advisor -- latest
: compiler -- latest
: debugger -- latest
: dev-utilities -- latest
: dpcpp-ct -- latest
: dpl -- latest
: inspector -- latest
: ipp -- latest
: ippcp -- latest
: itac -- latest
: mkl -- latest
: mpi -- latest
: tbb -- latest
: vtune -- latest
:: oneAPI environment initialized ::
>> fpm run --compiler ifort
demo.exe done.
[100%] Project compiled successfully.
Time for 5 loops: 0.2656250 0.000000000000000E+000
|
Beta Was this translation helpful? Give feedback.
-
Its working with gfortran but not with ifort. How can I change unknown option?
Beta Was this translation helpful? Give feedback.
All reactions