Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

visual-c++

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

sys/mman.h: No such file or directory and of course a bunch of errors to follow :(

I already know that its the 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?

P.S. I already linked mad.h to the compiler and tested out fine so I know there is no problem there ...

like image 878
Mohammed Avatar asked Nov 27 '09 20:11

Mohammed


1 Answers

This is probably too late for the original poster but if anyone needs mman.h for Windows, I've found this: http://code.google.com/p/mman-win32/

You should just be able to open it in VS (I've only done it in VS2010) and build it and then you should get what you want.

like image 54
frank stallone Avatar answered Nov 15 '22 16:11

frank stallone