Cant. Compile. HELP.

  • boxmein
    24th Mar 2011 Former Staff 0 Permalink
    Hey. I got the same error! You must include element.h
    #include "element.h"
  • dnerd
    24th Mar 2011 Member 0 Permalink
    so i should define that in which file? powder.h?
  • dnerd
    24th Mar 2011 Member 0 Permalink
    sorry for the minor necro, but i am wondering where i should include element.h
  • cctvdude99
    24th Mar 2011 Member 0 Permalink
    @dnerd
    It isn't necro if it's an unanswered question in the help/dev. help section.
    Possibly in all the element files.
    YES. If you are using Code::Blocks go to 'Search' > 'Replace in files' and type in #include < element.h > (without spaces) and replace it with this: #include "includes/element.h"

    That may work...
  • dnerd
    24th Mar 2011 Member 0 Permalink
    im using Xcode, but ill see what i can do...
  • cctvdude99
    24th Mar 2011 Member 0 Permalink
    @dnerd
    There will be a similar function somewhere I'm sure.
  • dnerd
    24th Mar 2011 Member 0 Permalink
    Well. heres the new error after replacing that:

    src/elements/wifi.c:17: error: ‘PT_NSCN’ undeclared (first use in this function)
    src/elements/wifi.c:17: error: ‘PT_PSCN’ undeclared (first use in this function)
    src/elements/wifi.c:17: error: ‘PT_INWR’ undeclared (first use in this function)
    src/elements/wifi.c:20: error: ‘PT_SPRK’ undeclared (first use in this function)
    src/elements/wifi.c:30: error: ‘ISWIRE’ undeclared (first use in this function)
    src/elements/wtrv.c:1:30: error: includes/element.h: No such file or directory
    src/elements/wtrv.c: In function ‘update_WTRV’:
    src/elements/wtrv.c:7: error: ‘x’ undeclared (first use in this function)
    src/elements/wtrv.c:7: error: (Each undeclared identifier is reported only once
    src/elements/wtrv.c:7: error: for each function it appears in.)
    src/elements/wtrv.c:7: error: ‘y’ undeclared (first use in this function)
    src/elements/wtrv.c:7: error: ‘XRES’ undeclared (first use in this function)
    src/elements/wtrv.c:7: error: ‘YRES’ undeclared (first use in this function)
    src/elements/wtrv.c:9: error: ‘pmap’ undeclared (first use in this function)
    src/elements/wtrv.c:10: error: ‘NPART’ undeclared (first use in this function)
    src/elements/wtrv.c:12: error: ‘PT_RBDM’ undeclared (first use in this function)
    src/elements/wtrv.c:12: error: ‘PT_LRBD’ undeclared (first use in this function)
    src/elements/wtrv.c:12: error: ‘legacy_enable’ undeclared (first use in this function)
    src/elements/wtrv.c:12: error: ‘parts’ undeclared (first use in this function)
    src/elements/wtrv.c:12: error: ‘i’ undeclared (first use in this function)
    src/elements/wtrv.c:14: error: ‘PT_FIRE’ undeclared (first use in this function)
    src/elements/yest.c:1:30: error: includes/element.h: No such file or directory
    src/elements/yest.c: In function ‘update_YEST’:
    src/elements/yest.c:7: error: ‘x’ undeclared (first use in this function)
    src/elements/yest.c:7: error: (Each undeclared identifier is reported only once
    src/elements/yest.c:7: error: for each function it appears in.)
    src/elements/yest.c:7: error: ‘y’ undeclared (first use in this function)
    src/elements/yest.c:7: error: ‘XRES’ undeclared (first use in this function)
    src/elements/yest.c:7: error: ‘YRES’ undeclared (first use in this function)
    src/elements/yest.c:9: error: ‘pmap’ undeclared (first use in this function)
    src/elements/yest.c:10: error: ‘NPART’ undeclared (first use in this function)
    src/elements/yest.c:12: error: ‘PT_DYST’ undeclared (first use in this function)
    src/elements/yest.c:12: error: ‘legacy_enable’ undeclared (first use in this function)
    src/elements/yest.c:14: error: ‘i’ undeclared (first use in this function)
    src/elements/yest.c:17: error: ‘parts’ undeclared (first use in this function)
    src/elements/yest.c:18: error: ‘PT_YEST’ undeclared (first use in this function)
    make: *** [powder-x] Error 1

    and it still has the old error :(

    ill try replacing it with no quotations

    ------------------------------------------------------------------------------

    After various tries to fix, i ended up replacing it with "element.h" and placing element.h in the src folder, that seemed to get rid of most of the error but i'm left with this:


    includes/powder.h:537: error: ‘IPL’ undeclared here (not in a function)
    includes/powder.h:537: error: ‘NT’ undeclared here (not in a function)
    includes/powder.h:537: error: ‘IPH’ undeclared here (not in a function)
    includes/powder.h:537: error: ‘ITL’ undeclared here (not in a function)
    includes/powder.h:537: error: ‘ITH’ undeclared here (not in a function)
    In file included from includes/element.h:5,

    by now, im pretty sure theres something wrong with the state change code...
  • Finalflash50
    24th Mar 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • dnerd
    24th Mar 2011 Member 0 Permalink
    @Finalflash50 (View Post)
    what do you mean?
    I can disable python...


    managed to get rid of the state change error, but now i have a new error (What progress!)


    python getheader.py --64bit
    linux args are
    -lpython2.7 -lm -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7

    windows args are
    -lpython2.7 -lm -L/Library/Frameworks/Python.framework/Versions/2.7/lib/config -I/Library/Frameworks/Python.framework/Versions/2.7/include
    YEAHS
    external
    Traceback (most recent call last):
    File "getheader.py", line 45, in
    with open("./includes/pyconsole.h","w") as fid:
    IOError: [Errno 2] No such file or directory: './includes/pyconsole.h'
    make: *** [powder-x] Error 1

    somethings wrong with python, again.

    i think ill just disable python...
  • awesome
    24th Mar 2011 Member 0 Permalink
    i get an error about the sld not being in the framework from anything later than 44.7