"sys / mman.h: No such file or directory"

I am using Code :: Blocks 8.02, and I have a question .. every time I try to compile a minimad.c file (the example that comes with Libmad), I get an error message:

sys/mman.h: No such file or directory and, of course, the sequence of errors: (

I already know that his memory management library ... The question is: Where can I download <sys/mman.h> ? or if there is another compiler that supports more libraries, then Code :: Blocks 8.02?

PS I already linked mad.h with the compiler and tested it, so I know there are no problems ...

+6
c ++ visual-c ++
source share
3 answers

Code :: Blocks is not a compiler, it is an IDE. And <sys/mman.h> is a Unix header and is not available on Windows.

+8
source share

Maybe it's too late for the original poster, but if someone needs mman.h for Windows, I found this: http://code.google.com/p/mman-win32/

You should just open it in VS (I just did it in VS2010) and build it, and then you should get what you want.

+5
source share

How do you compile the code? You may need to specify -I to specify an additional include directory, which you may need to dig into / usr / local / include / sys on your installation. You would also like to use the -L flag to indicate a library that is also associated with it. Dip again to find the right location.

Hope this helps, Regards, Tom.

0
source share

All Articles