- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
All,
Came across a gentleman providing some 'precompiled' libraries for some code I have been trying to build (Precompiled netCDF-C & netCDF-Fortran with Intel oneAPI and MVS2022 on Windows 11) - GREAT! I downloaded his files, created an ifort project, configuring the include libraries and all as directed in his instructions. I noted he references "Intel Fortran Compiler: 2024.2.0.424" where I have "Intel Fortran Compiler: 2024.1". When I compile & link a simple demo project, I get this error:
error #7881: This module file was generated for a different platform or by an incompatible compiler or compiler release. It cannot be read.
Is it correct that 2024.2 compiled libraries are not usable in a 2024.1 project? If so, how is one supposed to know a libraries' compile version to use with a specific compiler?
Thanks,
Jeff
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
The issue isn't the library, but rather the module file. Intel Fortran module files (.mod) are generally upward compatible, with rare exception. It could be that the compiled module file was built by a non-Intel compiler. I think there is also an issue mixing 32-bit and 64-bit compiles - if you have 2024 then you still have ifort which supports 32-bit. If you are building 64-bit, try switching to 32-bit or vice-versa. (Library files definitely have 32 vs 64-bit compatibility issues, but you'd see a different error in that case.)
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
The issue isn't the library, but rather the module file. Intel Fortran module files (.mod) are generally upward compatible, with rare exception. It could be that the compiled module file was built by a non-Intel compiler. I think there is also an issue mixing 32-bit and 64-bit compiles - if you have 2024 then you still have ifort which supports 32-bit. If you are building 64-bit, try switching to 32-bit or vice-versa. (Library files definitely have 32 vs 64-bit compatibility issues, but you'd see a different error in that case.)