Advertisement
Guest User

error

a guest
Dec 17th, 2014
1,898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.66 KB | None | 0 0
  1. g++ -c -Wall -Wno-format -g -DDEBUG -o Main.o Main.cpp
  2. Main.cpp:8:16: error: expected unqualified-id before numeric constant
  3.  #define homeid 1234
  4.                 ^
  5. Main.cpp:79:12: note: in expansion of macro ‘homeid’
  6.      string homeid;
  7.             ^
  8. Main.cpp: In function ‘void fillActivities()’:
  9. Main.cpp:8:16: error: expected unqualified-id before numeric constant
  10.  #define homeid 1234
  11.                 ^
  12. Main.cpp:200:42: note: in expansion of macro ‘homeid’
  13.                      if (strcmp(activity->homeid.c_str(), row[8]) != 0)activity->homeid = row[8];
  14.                                           ^
  15. Main.cpp:8:16: error: expected unqualified-id before numeric constant
  16.  #define homeid 1234
  17.                 ^
  18. Main.cpp:200:81: note: in expansion of macro ‘homeid’
  19.                      if (strcmp(activity->homeid.c_str(), row[8]) != 0)activity->homeid = row[8];
  20.                                                                                  ^
  21. Main.cpp:8:16: error: expected ‘;’ before numeric constant
  22.  #define homeid 1234
  23.                 ^
  24. Main.cpp:200:81: note: in expansion of macro ‘homeid’
  25.                      if (strcmp(activity->homeid.c_str(), row[8]) != 0)activity->homeid = row[8];
  26.                                                                                  ^
  27. Main.cpp:8:16: error: expected unqualified-id before numeric constant
  28.  #define homeid 1234
  29.                 ^
  30. Main.cpp:215:32: note: in expansion of macro ‘homeid’
  31.                  new_activity2->homeid = row[8];
  32.                                 ^
  33. Main.cpp:8:16: error: expected ‘;’ before numeric constant
  34.  #define homeid 1234
  35.                 ^
  36. Main.cpp:215:32: note: in expansion of macro ‘homeid’
  37.                  new_activity2->homeid = row[8];
  38.                                 ^
  39. Main.cpp: In function ‘void checkSensor(int)’:
  40. Main.cpp:254:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  41.          if (((unsigned)atoi(row[0]) == sensorId) && ((unsigned)atoi(row[1]) == g_homeId))flag = true;
  42.                                         ^
  43. Main.cpp: In function ‘void checkActivities(int, int, std::string)’:
  44. Main.cpp:8:16: error: expected unqualified-id before numeric constant
  45.  #define homeid 1234
  46.                 ^
  47. Main.cpp:267:69: note: in expansion of macro ‘homeid’
  48.          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)) {
  49.                                                                      ^
  50. make: *** [Main.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement