Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ -c -Wall -Wno-format -g -DDEBUG -o Main.o Main.cpp
- Main.cpp:8:16: error: expected unqualified-id before numeric constant
- #define homeid 1234
- ^
- Main.cpp:79:12: note: in expansion of macro ‘homeid’
- string homeid;
- ^
- Main.cpp: In function ‘void fillActivities()’:
- Main.cpp:8:16: error: expected unqualified-id before numeric constant
- #define homeid 1234
- ^
- Main.cpp:200:42: note: in expansion of macro ‘homeid’
- if (strcmp(activity->homeid.c_str(), row[8]) != 0)activity->homeid = row[8];
- ^
- Main.cpp:8:16: error: expected unqualified-id before numeric constant
- #define homeid 1234
- ^
- Main.cpp:200:81: note: in expansion of macro ‘homeid’
- if (strcmp(activity->homeid.c_str(), row[8]) != 0)activity->homeid = row[8];
- ^
- Main.cpp:8:16: error: expected ‘;’ before numeric constant
- #define homeid 1234
- ^
- Main.cpp:200:81: note: in expansion of macro ‘homeid’
- if (strcmp(activity->homeid.c_str(), row[8]) != 0)activity->homeid = row[8];
- ^
- Main.cpp:8:16: error: expected unqualified-id before numeric constant
- #define homeid 1234
- ^
- Main.cpp:215:32: note: in expansion of macro ‘homeid’
- new_activity2->homeid = row[8];
- ^
- Main.cpp:8:16: error: expected ‘;’ before numeric constant
- #define homeid 1234
- ^
- Main.cpp:215:32: note: in expansion of macro ‘homeid’
- new_activity2->homeid = row[8];
- ^
- Main.cpp: In function ‘void checkSensor(int)’:
- Main.cpp:254:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- if (((unsigned)atoi(row[0]) == sensorId) && ((unsigned)atoi(row[1]) == g_homeId))flag = true;
- ^
- Main.cpp: In function ‘void checkActivities(int, int, std::string)’:
- Main.cpp:8:16: error: expected unqualified-id before numeric constant
- #define homeid 1234
- ^
- Main.cpp:267:69: note: in expansion of macro ‘homeid’
- if ((activity->sensorId == node)&&((unsigned)atoi(activity->homeid.c_str()) == g_homeId)&&(strcmp(label.c_str(), activity->valuename.c_str()) == 0)&&(activity->value >= value && activity->minvalue <= value)&&(activity->activated == 1)) {
- ^
- make: *** [Main.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement