Skip to content

[BUG] Build fails with MPI under Win, latest release 2025 #806

@horstsoft0815

Description

@horstsoft0815

When trying to build on Windows (after generating with CMake) within Visual Studio the build fails simply due to the following line in sundials_mpi_errors.c

#include <unistd.h>

which is only valid for unix systems.

This could for example be fixed by replacing this line by

#ifdef _WIN32
#include <io.h>
#define access _access
#else
#include <unistd.h>
#endif

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions