Replies: 7 comments
-
I would use the Ninja or MinGW Makefiles generator from Intel oneapi command prompt to use Visual Studio. |
Beta Was this translation helpful? Give feedback.
-
@koutoui just for reference: the approach here followed mixes C and Fortran source files all at once (e.g. mumps_common).
(here the MUMPS_COMMON_EXPORTS are used to allow the symbol exposition that was probably needed because I was compiling shared libraries and I don't know if MUMPS_CALL was enough to export all the symbols needed) |
Beta Was this translation helpful? Give feedback.
-
Yes I tried this in "objects" branch but had problems with the cyclical links in Mumps. |
Beta Was this translation helpful? Give feedback.
-
If it can be of any help this is my full CMakeLists (dated back to Mumps 5.1.1) that I've used for a while to build Mumps for our software. |
Beta Was this translation helpful? Give feedback.
-
OK thank you! |
Beta Was this translation helpful? Give feedback.
-
This project is too awesome! dmumps.lib(mumps_c.obj) : error LNK2019: unresolved external symbol DMUMPS_SET_TMP_PTR referenced in function DMUMPS_SET_TMP_PTR_C |
Beta Was this translation helpful? Give feedback.
-
For both #1 and #2, despite recent MUMPS CMake enhancement re: shared libs, on Windows with Intel oneAPI (icl/ifort or icx/ifx) shared libs still don't work. This may be an upstream MUMPS issue. Using static libs (the default) does work. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I've been trying to compile mumps v5.3.3.7 with the intel toolchain on Windows using cmake, but I'm getting linker errors when I'm trying to compile the c_example.c (that's under the example folder). (NOTE: All is done in the intel specific cmd with msvc2019 integration)
I first run:
that outputs:
which I then build like that:
which outputs:
And then I install it:
which outputs:
But, when I try to compile the example (which I've changed a bit).
and I get:
Which outputs a DMUMPS_SET_TMP_PTR and a DMUMPS_F77 linker error.
Could you point me in the right direction on how to fix that? (I'm not much of a windows expert).
Note: I've opened the visual studio solution to build it from there, since there was a url suggestion on your readme(https://software.intel.com/content/www/us/en/develop/articles/configuring-visual-studio-for-mixed-language-applications.html), but the IFORT_COMPILER/etc variables were already defined
Best Regards,
Ioannis
Beta Was this translation helpful? Give feedback.
All reactions