gccboostmingw-w64jam

Building boost without memory-mapped IO


I'm trying to build boost 1.71 for a platform which doesn't have mmap/munmap (Nintendo Switch with devkitPro toolchain). The build fails because there is no <sys/mman.h> file.

How do I configure boost to disable memory-mapped IO? I have checked boost/config/user.hpp but there seems to be no relevant options in there.


Solution

  • For Header-Only Use:

    Make sure

    For Library Compilation

    The list is going to include all the above and anything that transitively depends on them.

    This could be a lot, but I haven't traced them. So maybe you are in luck for the libraries you are after

    The following direct dependencies can be tweaked though: