I have written two files (.h and .cpp) but i can't figure it out how to import them to the wz2100 source.
The only way i was able to compile my files in the project was by directly changing the source folder Makefile, but i guess that if i run configure my modified Makefile will be reset. What files do i have to change and where?
Also, when i try to compile my files after including the file droid.h, i keep getting this error on build:
In file included from functiondef.h:27:0,
from objectdef.h:30,
from droid.h:30,
from vfc.cpp:11:
statsdef.h: In member function ‘uint32_t LineView::i8(unsigned int)’:
statsdef.h:126:49: error: ‘INT8_MIN’ was not declared in this scope
statsdef.h:126:60: error: ‘INT8_MAX’ was not declared in this scope
statsdef.h: In member function ‘uint32_t LineView::u8(unsigned int)’:
statsdef.h:127:60: error: ‘UINT8_MAX’ was not declared in this scope
statsdef.h: In member function ‘uint32_t LineView::i16(unsigned int)’:
statsdef.h:128:49: error: ‘INT16_MIN’ was not declared in this scope
statsdef.h:128:60: error: ‘INT16_MAX’ was not declared in this scope
statsdef.h: In member function ‘uint32_t LineView::u16(unsigned int)’:
statsdef.h:129:60: error: ‘UINT16_MAX’ was not declared in this scope
statsdef.h: In member function ‘uint32_t LineView::i32(unsigned int)’:
statsdef.h:130:49: error: ‘INT32_MIN’ was not declared in this scope
statsdef.h:130:60: error: ‘INT32_MAX’ was not declared in this scope
statsdef.h: In member function ‘uint32_t LineView::u32(unsigned int)’:
statsdef.h:131:60: error: ‘UINT32_MAX’ was not declared in this scope
I've included mu .h and .cpp files on the "noinst_HEADERS" and "warzone2100_SOURCES" lists but when i ran configure the files don't appear on the resulting Makefile.
I don't think so. When i modified the Makefile inside the src folder so it would compile my files i ran make and it wouldn't regenerate the Makefile. I guess it only regenerates when i run configure.
Yes. I've tried it. I included my .h and .cpp files in the "noinst_HEADERS" and "warzone2100_SOURCES" lists in the Makefile.am, run make, and everything is the same. I've also looked into the Makefile and my files don't appear there.