Reputation: 119
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 ...
Upvotes: 8
Views: 62244
Reputation: 11
WSL or Windows Subsystem for Linux is a great way to develop c programs in a native environment but within windows.
https://learn.microsoft.com/en-us/windows/wsl/install
I know this is years late but I hope someone finds it useful like I have.
Upvotes: 1
Reputation: 301
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.
Upvotes: 8
Reputation: 34592
How are you compiling the code? You might need to specify -I for specifying extra include directory which you may have to dig around on your installation /usr/local/include/sys perhaps. Also you would want to use the -L flag to specify the library that gets linked in also. Again dig around to find the correct location.
Hope this helps, Best regards, Tom.
Upvotes: 0
Reputation: 101615
Code::Blocks is not a compiler, it's an IDE. And <sys/mman.h>
is a Unix header and is not available on Windows.
Upvotes: 17