Compiling clean source of 45.2, errors.

  • Diissaster
    14th Jan 2011 Member 0 Permalink
    These are all in air.c!
    I didn't modify any source.
    I use code::blocks
    The errors were:

    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b 3 735bb\src\air.c|2|error: air.h: No such file or directory|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|3|error: powder.h: No such file or directory|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|4|error: defines.h: No such file or directory|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|7|error: 'YRES' undeclared here (not in a function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|7|error: 'CELL' undeclared here (not in a function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|7|error: 'XRES' undeclared here (not in a function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c||In function 'update_air':|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|44|error: 'TSTEPP' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|44|error: (Each undeclared identifier is reported only once|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|44|error: for each function it appears in.)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|53|error: 'VLOSS' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|55|error: 'TSTEPV' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|57|error: 'bmap' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|57|error: 'WL_WALL' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|58|error: 'WL_WALLELEC' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|59|error: 'WL_EWALL' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|59|error: 'emap' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|105|error: 'VADV' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|121|error: 'WL_FAN' undeclared (first use in this function)|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|138|warning: implicit declaration of function 'memcpy'|
    C:\Users\***\Downloads\FacialTurd-The-Powder-Toy-b3735bb\FacialTurd-The-Powder-Toy-b3 735bb\src\air.c|138|warning: incompatible implicit declaration of built-in function 'memcpy'|
    ||=== Build finished: 18 errors, 2 warnings ===|
  • Simon
    14th Jan 2011 Administrator 0 Permalink
    You haven't set your includes directories.
  • Mur
    14th Jan 2011 Member 0 Permalink
    Probably a missing or incorrectly linked library (Most likely SDL or lbz2)
  • Diissaster
    14th Jan 2011 Member 0 Permalink
    Simon:
    You haven't set your includes directories.

    ?
    How?
  • boxmein
    14th Jan 2011 Former Staff 0 Permalink
    #include <includes\>
    he is not finding the includes folder
    put includes folder in SRC folder where the main.c is that should fix it.
  • jacksonmj
    14th Jan 2011 Developer 0 Permalink
    Diissaster:
    How?

    By reading the wiki?
    https://powdertoy.co.uk/Wiki.html?id=codeblocks_setup

    TPT Wiki:
    Now go to Search directories ->' Compiler, still in Build Options. Add the following:
    The includes folder of the source
    C:\MinGW\include\SDL
    C:\MinGW\include\

  • boxmein
    14th Jan 2011 Former Staff 0 Permalink
    jacksonmj
    Yes.
  • Diissaster
    14th Jan 2011 Member 0 Permalink
    @jacksonmj
    I did...
  • pilojo
    14th Jan 2011 Member 0 Permalink
    @Diissaster
    Read it again.. you did it wrong...
  • Diissaster
    14th Jan 2011 Member 0 Permalink
    @pilojo
    MinGW is inside codeblocks in C. Make a difference?