@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"
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
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...
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