make error (Dynamic)
Closed this issue · 2 comments
Do i need to do anything different with this Dynamic fork as I'm getting errors?
Excellent progress BTW.
root@raspberrypi:~/PersonalHomeKit# make
g++ -O0 -w -c PHKAccessory.cpp
In file included from PHKAccessory.cpp:9:0:
PHKAccessory.h: In member function ‘bool Accessory::removeService(Service_)’:
PHKAccessory.h:234:19: error: ‘it’ does not name a type
for (auto it = _services.begin(); it != _services.end(); it++) {
^
PHKAccessory.h:234:43: error: expected ‘;’ before ‘it’
for (auto it = _services.begin(); it != services.end(); it++) {
^
PHKAccessory.h:234:43: error: ‘it’ was not declared in this scope
PHKAccessory.h: In member function ‘bool Accessory::removeCharacteristics(characteristics)’:
PHKAccessory.h:244:19: error: ‘it’ does not name a type
for (auto it = _services.begin(); it != _services.end(); it++) {
^
PHKAccessory.h:244:43: error: expected ‘;’ before ‘it’
for (auto it = _services.begin(); it != _services.end(); it++) {
^
PHKAccessory.h:244:43: error: ‘it’ was not declared in this scope
PHKAccessory.h:245:23: error: ‘jt’ does not name a type
for (auto jt = (_it)->_characteristics.begin(); jt != (_it)->_characteristics.end(); jt++) {
^
PHKAccessory.h:245:61: error: expected ‘;’ before ‘jt’
for (auto jt = (_it)->_characteristics.begin(); jt != (_it)->_characteristics.end(); jt++) {
^
PHKAccessory.h:245:61: error: ‘jt’ was not declared in this scope
PHKAccessory.h: In member function ‘Service* Accessory::serviceAtIndex(int)’:
PHKAccessory.h:257:19: error: ‘it’ does not name a type
for (auto it = _services.begin(); it != _services.end(); it++) {
^
PHKAccessory.h:257:43: error: expected ‘;’ before ‘it’
for (auto it = _services.begin(); it != _services.end(); it++) {
^
PHKAccessory.h:257:43: error: ‘it’ was not declared in this scope
PHKAccessory.h: In member function ‘characteristics* Accessory::characteristicsAtIndex(int)’:
PHKAccessory.h:265:19: error: ‘it’ does not name a type
for (auto it = _services.begin(); it != _services.end(); it++) {
^
PHKAccessory.h:265:43: error: expected ‘;’ before ‘it’
for (auto it = _services.begin(); it != _services.end(); it++) {
^
PHKAccessory.h:265:43: error: ‘it’ was not declared in this scope
PHKAccessory.h:266:23: error: ‘jt’ does not name a type
for (auto jt = (_it)->_characteristics.begin(); jt != (_it)->_characteristics.end(); jt++) {
^
PHKAccessory.h:266:61: error: expected ‘;’ before ‘jt’
for (auto jt = (_it)->_characteristics.begin(); jt != (_it)->_characteristics.end(); jt++) {
^
PHKAccessory.h:266:61: error: ‘jt’ was not declared in this scope
PHKAccessory.h: In member function ‘Accessory* AccessorySet::accessoryAtIndex(int)’:
PHKAccessory.h:285:19: error: ‘it’ does not name a type
for (auto it = _accessories.begin(); it != _accessories.end(); it++) {
^
PHKAccessory.h:285:46: error: expected ‘;’ before ‘it’
for (auto it = _accessories.begin(); it != accessories.end(); it++) {
^
PHKAccessory.h:285:46: error: ‘it’ was not declared in this scope
PHKAccessory.h: In member function ‘bool AccessorySet::removeAccessory(Accessory)’:
PHKAccessory.h:298:19: error: ‘it’ does not name a type
for (auto it = _accessories.begin(); it != _accessories.end(); it++) {
^
PHKAccessory.h:298:46: error: expected ‘;’ before ‘it’
for (auto it = _accessories.begin(); it != accessories.end(); it++) {
^
PHKAccessory.h:298:46: error: ‘it’ was not declared in this scope
makefile:36: recipe for target 'PHKAccessory.o' failed
make: ** [PHKAccessory.o] Error 1
Just add -std=c++11 to CFLAG in Makefile
That's okay. I just remove the C++ 11 code at the last push.