Official development repository for SUNDIALS - a SUite of Nonlinear and DIfferential/ALgebraic equation Solvers. Pull requests are welcome for bug fixes and minor changes.
I am building sundials 7.1.1 for c++ and fortran and cant finish install step in Visual Studio due to many link errors. It seems .c.obj files are properly created but .f90.obj are not
Expected Behavior:
I would expect with flag -DBUILD_FORTRAN_MODULE_INTERFACE=on there will be a buildable solution for fortran code of sundials in visual studio
Steps To Reproduce:
Download sundials into \sundials-7.1.1
Create folders \build , \install , \examples
goto \build and run
cmake -DCMAKE_INSTALL_PREFIX=..\install -DEXAMPLES_INSTALL_PATH=..\examples ..\sundials-7.1.1 -DBUILD_FORTRAN_MODULE_INTERFACE=on
open \build\SUNDIALS.sln in Visual Studio
Try INSTALL step on RelWithDebInfo
See many errors similar to "Error LNK1181 cannot open input file '...\build\src\cvodes\fmod_int64\sundials_fcvodes_mod_obj_static.dir\RelWithDebInfo\fcvodes_mod.f90.obj' sundials_fcvodes_mod_static ...\build\src\cvodes\fmod_int64\LINK 1"
Environment:
SUNDIALS version: 7.1.1
OS: Windows 10 Enterprise
Compiler: Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.8.0
CMake: cmake version 3.24.4
Visual Studio 2019
Anything else:
I can see in folder ...\build\src\cvodes\fmod_int64\sundials_fcvodes_mod_obj_static.dir\RelWithDebInfo
there is a file fcvodes_mod.c.obj and no fcvodes_mod.f90.obj If that is a problem, is there a way to fix that?
We test with the Intel compilers on Windows with ninja, so that should work now (if that helps as a workaround). I will look into this specific setup (Intel fortran compiler + Visual Studio).
Current Behavior:
I am building sundials 7.1.1 for c++ and fortran and cant finish install step in Visual Studio due to many link errors. It seems.c.obj files are properly created but .f90.obj are not
Expected Behavior:
I would expect with flag -DBUILD_FORTRAN_MODULE_INTERFACE=on there will be a buildable solution for fortran code of sundials in visual studio
Steps To Reproduce:
Environment:
Anything else:
I can see in folder ...\build\src\cvodes\fmod_int64\sundials_fcvodes_mod_obj_static.dir\RelWithDebInfo
there is a file fcvodes_mod.c.obj and no fcvodes_mod.f90.obj If that is a problem, is there a way to fix that?