Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29077 Discussions

LINK : fatal error LNK1104: can not open 'ifconsol.lib'

rgbmendes87
Beginner
397 Views

Hi guys...

 

I'm trying to move my fortran/python programs from linux to windows. To do it, I have choice the ifort as compiler for windows (at linux I was using gfortran and never had this problem). With linux I made fortran subroutines that were called by python program through f2py3 (numpy-python). For it, I used the following three commands:

 

1)      gfortran -c -fPIC metropolis.f90 -o metropolis.o

2)      gfortran -shared -o metropolis.so metropolis.o

3)      f2py3 -c -m Metropolis_f90 metropolis.f90

 

I am trying to reply to the same job through ifort, now using windows, at prompt I am executing:

1)     ifort -c metropolis.f90 -o metropolis.obj

                   (receiving the message below )

Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.13.1 Build 20240703_000000
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

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.

 

and, then,

2)     ifort /dll /def:metropolis.def metropolis.obj /out:metropolis.dll

                   (receiving the message below )

Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.13.1 Build 20240703__000000
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

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 #10158: ignoring option '/o'; argument must be separate
Microsoft (R) Incremental Linker Version 14.40.33813.0
Copyright (C) Microsoft Corporation. All rights reserved.

-out:metropolis.dll
-dll
-implib:metropolis.lib
metropolis.obj
LINK : fatal error LNK1104: não é possível abrir o arquivo 'ifconsol.lib'

 

I have already tried a lot of possibilities to solve the unfound 'ifconsol.lib' and never... Please, guys, HEEEELP ME!!! Any suggestion should be appreciated.

Thanks

 

 

0 Kudos
0 Replies
Reply