- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page