Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

winapifamily.h : No such file or directory

After a previous issue, I gave up and blew my installation away to start afresh. Reinstalling MinGW, Code Blocks (with MinGW) and SDL. Following this tutorial (http://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/codeblocks/index.php) to the letter. And every time I try to compile, no matter if the project is new or not, will suffer from the error message in the topic title.

I have tried this solution ("winapifamily.h: No such file or directory" when compiling SDL in Code::Blocks) and it still prevails. I have blown the installation to start again. I have now run out of options. Can anyone tell me why this is still happening?

I am using the latest versions of MinGW, SDL and Code Blocks.

like image 579
Jeremy Beare Avatar asked Nov 21 '25 11:11

Jeremy Beare


1 Answers

How about hardcoding the include directory to your project? winapifamily.h should be on C:\Program Files (x86)\Windows Kits\8.0\Include\shared. You can add it to the "search directories" tab in project build options.

Make sure to check the file exist in the location first. If it doesn't, you may need to install windows 8 sdk.

like image 79
Osod Avatar answered Nov 24 '25 03:11

Osod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!