Search code examples
c++linuxcygwincross-compiling

How to use Linux headers on Windows using Cygwin?


After installing Cygwin, I have found all the tools to my satisfaction in the proper directories. But I can't figure out how to compile C++ code using headers like mman.h and dlfcn.h which are Linux specific headers ?


Solution

  • A quick search in cygwin package index reports mman.h in the core cygwin-devel package and dlfcn.h in mingw64-x86_64-dlfcn package.