Code::blocks include error

  • iggyfigs
    11th Apr 2011 Member 0 Permalink
    Here's my error:
    D:\Apps\PowderSource\src\air.c|2|fatal error: defines.h: No such file or directory
    This error arises in the air.c file

    Here are the changes I made:
    http://pastebin.com/k9VgYxFD\
    only made to powder.h

    The thing is, this file does exist! I even tried reordering the code to test a hunch, and the error only comes up on line two! What can I do? I tried #include\air.h and #include "air.h" but neither work. Please help!

    EDIT: All my files are linked.
  • Merbo
    11th Apr 2011 Member 0 Permalink
    @iggyfigs (View Post)
    This is because you did not set up your include directories. I do not use C::B, I use Visual Studio, so read up in the wiki for it a bit more.
  • Pilihp64
    11th Apr 2011 Developer 0 Permalink
    You have included the 'includes' folder wrong. I know the wiki says add 'includes' but try adding the entire path to it, like 'C:\tptsource\includes' or wherever you have it
  • Merbo
    11th Apr 2011 Member 0 Permalink
    @cracker64 (View Post)
    It's probably "includes\", not inculdes. Still, yours is a definate answer.
  • iggyfigs
    11th Apr 2011 Member 0 Permalink
    Thank you! linking the entire path worked. But now, I have another error... In includes\graphics.h, I am getting the error on line 3 (#include ):
    D:\Apps\PowderSource\includes\graphics.h|3|fatal error: SDL/SDL.h: No such file or directory
    Now, I would give a directory to this file, but I have no clue what or where it is!
  • Pilihp64
    11th Apr 2011 Developer 0 Permalink
    You clearly skipped some wiki steps then, it has setup for sdl, and other libraries
  • iggyfigs
    11th Apr 2011 Member 0 Permalink
    But... But I didn't.... Although.. I do remember WinRAR giving me an error about decompressing a file vaugely familiar to SDL...

    Is this SDL file supposed to be in the root of MinGW, be named "SDL-devel-1.2.14-mingw32.tar.gz-1" and be a GZ-1 file? That doesnt seem right.
  • Pilihp64
    11th Apr 2011 Developer 0 Permalink
    Yes that needs to be decompressed, it's just in a weird format, google how to get it.