scotch and cmake in mingw/msys2
With Cmake with -DBUILD_SHARED_LIBS=ON
I have this error:
FAILED: bin/libscotch.dll lib/libscotch.dll.a
C:\Windows\system32\cmd.exe /C "cd . && C:\msys64\mingw64\bin\gcc.exe -march=nocona -msahf -mtune=generic -O2 -pipe -O3 -DNDEBUG -pipe -shared -o bin\libscotch.dll -Wl,--out-implib,lib\libscotch.dll.a -Wl,--major-image-version,7,--minor-image-version,0 @CMakeFiles\scotch.rsp && cd ."
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/libscotch/CMakeFiles/scotch.dir/arch.c.obj:arch.c:(.text+0x1a8): undefined reference to `SCOTCH_errorPrint'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/libscotch/CMakeFiles/scotch.dir/arch.c.obj:arch.c:(.text+0x1c0): undefined reference to `SCOTCH_errorPrint'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/libscotch/CMakeFiles/scotch.dir/arch.c.obj:arch.c:(.text+0x208): undefined reference to `SCOTCH_errorPrint'