Advertisement
Guest User

compile gen.cpp

a guest
Jul 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.98 KB | None | 0 0
  1. gen.cpp: In function ‘void error(int)’:
  2. gen.cpp:81:7: error: ‘EXIT_FAILURE’ was not declared in this scope
  3. exit(EXIT_FAILURE);
  4. ^
  5. gen.cpp:81:19: error: ‘exit’ was not declared in this scope
  6. exit(EXIT_FAILURE);
  7. ^
  8. gen.cpp: In function ‘void print_message(std::ostream&, message&)’:
  9. gen.cpp:230:13: error: ‘x’ does not name a type
  10. for (auto x : m.subm){
  11. ^
  12. gen.cpp:240:3: error: expected ‘;’ before ‘s’
  13. s << ")";
  14. ^
  15. gen.cpp:241:2: error: expected primary-expression before ‘}’ token
  16. }
  17. ^
  18. gen.cpp:241:2: error: expected ‘)’ before ‘}’ token
  19. gen.cpp:241:2: error: expected primary-expression before ‘}’ token
  20. gen.cpp: In function ‘void print_actor(std::ostream&, actor&)’:
  21. gen.cpp:258:13: error: ‘x’ does not name a type
  22. for (auto x : a.ports){
  23. ^
  24. gen.cpp:268:3: error: expected ‘;’ before ‘s’
  25. s << ")";
  26. ^
  27. gen.cpp:269:2: error: expected primary-expression before ‘}’ token
  28. }
  29. ^
  30. gen.cpp:269:2: error: expected ‘)’ before ‘}’ token
  31. gen.cpp:269:2: error: expected primary-expression before ‘}’ token
  32. gen.cpp: In function ‘void design(std::ofstream&, std::__cxx11::list<message>&, std::__cxx11::list<actor>&)’:
  33. gen.cpp:292:20: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  34. for (message& m : mlist){
  35. ^
  36. gen.cpp:301:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  37. for (auto& x : m.subm){
  38. ^
  39. gen.cpp:301:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  40. for (auto& x : m.subm){
  41. ^
  42. gen.cpp:302:37: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  43. if (first){ outf << "TAG_" << x.name; first = false; }
  44. ^
  45. gen.cpp:303:31: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  46. else outf << ",TAG_" << x.name;
  47. ^
  48. gen.cpp:309:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  49. for (auto& x : m.subm){
  50. ^
  51. gen.cpp:309:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  52. for (auto& x : m.subm){
  53. ^
  54. gen.cpp:310:12: error: request for member ‘dummy’ in ‘x’, which is of non-class type ‘int’
  55. if (!x.dummy){
  56. ^
  57. gen.cpp:311:31: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  58. outf << "\tstruct " << x.name << "{\n";
  59. ^
  60. gen.cpp:312:46: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  61. outf << "/*$TET$" << m.name << "$" << x.name << "*/\n"
  62. ^
  63. gen.cpp:314:27: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  64. outf << "\t} _" << x.name << ";\n\n";
  65. ^
  66. gen.cpp:355:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  67. for (actor& a : alist){
  68. ^
  69. gen.cpp:371:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
  70. for (auto& p:a.ports){
  71. ^
  72. gen.cpp:371:16: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  73. for (auto& p:a.ports){
  74. ^
  75. gen.cpp:372:10: error: request for member ‘type’ in ‘p’, which is of non-class type ‘int’
  76. if (p.type == port::CLIENT)
  77. ^
  78. gen.cpp:373:23: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
  79. outf << "\t" << p.message_name << "* " << p.name << "();\n";
  80. ^
  81. gen.cpp:373:49: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  82. outf << "\t" << p.message_name << "* " << p.name << "();\n";
  83. ^
  84. gen.cpp:374:15: error: request for member ‘type’ in ‘p’, which is of non-class type ‘int’
  85. else if (p.type == port::SERVER)
  86. ^
  87. gen.cpp:375:28: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  88. outf << "\tvoid " << p.name << "(" << p.message_name << "*);\n";
  89. ^
  90. gen.cpp:375:45: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
  91. outf << "\tvoid " << p.name << "(" << p.message_name << "*);\n";
  92. ^
  93. gen.cpp:387:15: error: ISO C++ forbids declaration of ‘m’ with no type [-fpermissive]
  94. for (auto &m : mlist){
  95. ^
  96. gen.cpp:387:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  97. for (auto &m : mlist){
  98. ^
  99. gen.cpp:388:11: error: request for member ‘subm’ in ‘m’, which is of non-class type ‘int’
  100. if (m.subm.empty() && !m.duplex){
  101. ^
  102. gen.cpp:388:30: error: request for member ‘duplex’ in ‘m’, which is of non-class type ‘int’
  103. if (m.subm.empty() && !m.duplex){
  104. ^
  105. gen.cpp:390:34: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  106. outf << "\tvoid recv_" << m.name << "(" << m.name << "&m){\n"
  107. ^
  108. gen.cpp:390:51: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  109. outf << "\tvoid recv_" << m.name << "(" << m.name << "&m){\n"
  110. ^
  111. gen.cpp:391:44: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  112. "/*$TET$" << a.name << "$recv_" << m.name << "*/\n"
  113. ^
  114. gen.cpp:398:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
  115. for (auto &p : a.ports){
  116. ^
  117. gen.cpp:398:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  118. for (auto &p : a.ports){
  119. ^
  120. gen.cpp:400:27: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  121. outf << "\tvoid " << p.name << "(" << p.message_name << "&m){\n"
  122. ^
  123. gen.cpp:400:44: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
  124. outf << "\tvoid " << p.name << "(" << p.message_name << "&m){\n"
  125. ^
  126. gen.cpp:401:37: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  127. "/*$TET$" << a.name << "$" << p.name << "*/\n"
  128. ^
  129. gen.cpp:426:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  130. for (auto& x : a.ports){
  131. ^
  132. gen.cpp:426:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  133. for (auto& x : a.ports){
  134. ^
  135. gen.cpp:427:11: error: request for member ‘type’ in ‘x’, which is of non-class type ‘int’
  136. if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
  137. ^
  138. gen.cpp:427:50: error: request for member ‘message_name’ in ‘x’, which is of non-class type ‘int’
  139. if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
  140. ^
  141. gen.cpp:427:76: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  142. if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
  143. ^
  144. gen.cpp: In function ‘void deploy(std::ofstream&, std::__cxx11::list<message>&, std::__cxx11::list<actor>&)’:
  145. gen.cpp:462:13: error: ISO C++ forbids declaration of ‘m’ with no type [-fpermissive]
  146. for (auto& m:mlist){
  147. ^
  148. gen.cpp:462:15: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  149. for (auto& m:mlist){
  150. ^
  151. gen.cpp:463:9: error: request for member ‘duplex’ in ‘m’, which is of non-class type ‘int’
  152. if(!m.duplex){
  153. ^
  154. gen.cpp:465:24: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  155. outf << "MES_" << m.name;
  156. ^
  157. gen.cpp:477:20: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  158. for (message& m : mlist){
  159. ^
  160. gen.cpp:507:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  161. for (auto& x : m.subm){
  162. ^
  163. gen.cpp:507:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  164. for (auto& x : m.subm){
  165. ^
  166. gen.cpp:508:37: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  167. if (first){ outf << "TAG_" << x.name; first = false; }
  168. ^
  169. gen.cpp:509:31: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  170. else outf << ",TAG_" << x.name;
  171. ^
  172. gen.cpp:515:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  173. for (auto& x : m.subm){
  174. ^
  175. gen.cpp:515:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  176. for (auto& x : m.subm){
  177. ^
  178. gen.cpp:516:12: error: request for member ‘dummy’ in ‘x’, which is of non-class type ‘int’
  179. if (!x.dummy){
  180. ^
  181. gen.cpp:518:31: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  182. outf << "\tstruct " << x.name << "{\n";
  183. ^
  184. gen.cpp:519:46: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  185. outf << "/*$TET$" << m.name << "$" << x.name << "*/\n"
  186. ^
  187. gen.cpp:521:27: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  188. outf << "\t} _" << x.name << ";\n\n";
  189. ^
  190. gen.cpp:601:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  191. for (actor& a : alist){
  192. ^
  193. gen.cpp:610:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  194. for (auto& x : a.ports){
  195. ^
  196. gen.cpp:610:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  197. for (auto& x : a.ports){
  198. ^
  199. gen.cpp:612:38: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  200. if (first){ outf << "TAG_" << x.name << "=START+" << ++tag_num; first = false; }
  201. ^
  202. gen.cpp:613:32: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  203. else outf << ",TAG_" << x.name << "=START+" << ++tag_num;
  204. ^
  205. gen.cpp:616:38: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  206. if (first){ outf << "TAG_" << x.name; first = false; }
  207. ^
  208. gen.cpp:617:32: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  209. else outf << ",TAG_" << x.name;
  210. ^
  211. gen.cpp:624:14: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  212. for (auto& x : a.ports)
  213. ^
  214. gen.cpp:624:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  215. for (auto& x : a.ports)
  216. ^
  217. gen.cpp:625:10: error: request for member ‘type’ in ‘x’, which is of non-class type ‘int’
  218. if (x.type == port::CLIENT){ have_client_ports = true; break; };
  219. ^
  220. gen.cpp:632:14: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  221. for(auto& x : a.ports)
  222. ^
  223. gen.cpp:632:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  224. for(auto& x : a.ports)
  225. ^
  226. gen.cpp:633:11: error: request for member ‘type’ in ‘x’, which is of non-class type ‘int’
  227. if (x.type == port::CLIENT){
  228. ^
  229. gen.cpp:635:23: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  230. outf << "_" << x.name << "(this, &e, TAG_" << x.name << ")";
  231. ^
  232. gen.cpp:635:54: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  233. outf << "_" << x.name << "(this, &e, TAG_" << x.name << ")";
  234. ^
  235. gen.cpp:672:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
  236. for (auto& p : a.ports){
  237. ^
  238. gen.cpp:672:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  239. for (auto& p : a.ports){
  240. ^
  241. gen.cpp:673:10: error: request for member ‘type’ in ‘p’, which is of non-class type ‘int’
  242. if (p.type == port::CLIENT)
  243. ^
  244. gen.cpp:674:23: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
  245. outf << "\t" << p.message_name << "* " << p.name << "(){return &_" << p.name << ";}\n";
  246. ^
  247. gen.cpp:674:49: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  248. outf << "\t" << p.message_name << "* " << p.name << "(){return &_" << p.name << ";}\n";
  249. ^
  250. gen.cpp:674:77: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  251. outf << "\t" << p.message_name << "* " << p.name << "(){return &_" << p.name << ";}\n";
  252. ^
  253. gen.cpp:675:15: error: request for member ‘type’ in ‘p’, which is of non-class type ‘int’
  254. else if (p.type == port::SERVER)
  255. ^
  256. gen.cpp:676:28: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  257. outf << "\tvoid " << p.name << "(" << p.message_name << "*m){m->_server_id=TAG_"<<p.name<<"; m->_srv=this;}\n";
  258. ^
  259. gen.cpp:676:45: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
  260. outf << "\tvoid " << p.name << "(" << p.message_name << "*m){m->_server_id=TAG_"<<p.name<<"; m->_srv=this;}\n";
  261. ^
  262. gen.cpp:676:89: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  263. outf << "\tvoid " << p.name << "(" << p.message_name << "*m){m->_server_id=TAG_"<<p.name<<"; m->_srv=this;}\n";
  264. ^
  265. gen.cpp:684:14: error: ISO C++ forbids declaration of ‘m’ with no type [-fpermissive]
  266. for (auto& m : mlist)
  267. ^
  268. gen.cpp:684:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  269. for (auto& m : mlist)
  270. ^
  271. gen.cpp:685:11: error: request for member ‘duplex’ in ‘m’, which is of non-class type ‘int’
  272. if (!m.duplex && a.response_any) outf << "\t\t\tcase MES_" << m.name << ": ((" << a.name << "*)a)->recv_" << m.name << "(*((" << m.name << "*)m)); break;\n";
  273. ^
  274. gen.cpp:685:68: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  275. if (!m.duplex && a.response_any) outf << "\t\t\tcase MES_" << m.name << ": ((" << a.name << "*)a)->recv_" << m.name << "(*((" << m.name << "*)m)); break;\n";
  276. ^
  277. gen.cpp:685:115: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  278. if (!m.duplex && a.response_any) outf << "\t\t\tcase MES_" << m.name << ": ((" << a.name << "*)a)->recv_" << m.name << "(*((" << m.name << "*)m)); break;\n";
  279. ^
  280. gen.cpp:685:135: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  281. if (!m.duplex && a.response_any) outf << "\t\t\tcase MES_" << m.name << ": ((" << a.name << "*)a)->recv_" << m.name << "(*((" << m.name << "*)m)); break;\n";
  282. ^
  283. gen.cpp:687:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
  284. for (auto& p : a.ports)
  285. ^
  286. gen.cpp:687:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  287. for (auto& p : a.ports)
  288. ^
  289. gen.cpp:688:35: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  290. outf << "\t\t\tcase TAG_" << p.name << ": ((" << a.name << "*)a)->" << p.name << "(*((" << p.message_name << "*)m)); break;\n";
  291. ^
  292. gen.cpp:688:77: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  293. outf << "\t\t\tcase TAG_" << p.name << ": ((" << a.name << "*)a)->" << p.name << "(*((" << p.message_name << "*)m)); break;\n";
  294. ^
  295. gen.cpp:688:97: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
  296. outf << "\t\t\tcase TAG_" << p.name << ": ((" << a.name << "*)a)->" << p.name << "(*((" << p.message_name << "*)m)); break;\n";
  297. ^
  298. gen.cpp:704:15: error: ISO C++ forbids declaration of ‘m’ with no type [-fpermissive]
  299. for (auto &m : mlist){
  300. ^
  301. gen.cpp:704:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  302. for (auto &m : mlist){
  303. ^
  304. gen.cpp:705:11: error: request for member ‘subm’ in ‘m’, which is of non-class type ‘int’
  305. if (m.subm.empty() && !m.duplex){
  306. ^
  307. gen.cpp:705:30: error: request for member ‘duplex’ in ‘m’, which is of non-class type ‘int’
  308. if (m.subm.empty() && !m.duplex){
  309. ^
  310. gen.cpp:707:34: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  311. outf << "\tvoid recv_" << m.name << "(" << m.name << "&m){\n"
  312. ^
  313. gen.cpp:707:51: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  314. outf << "\tvoid recv_" << m.name << "(" << m.name << "&m){\n"
  315. ^
  316. gen.cpp:708:44: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
  317. "/*$TET$" << a.name << "$recv_" << m.name << "*/\n"
  318. ^
  319. gen.cpp:715:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
  320. for (auto &p : a.ports){
  321. ^
  322. gen.cpp:715:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  323. for (auto &p : a.ports){
  324. ^
  325. gen.cpp:717:27: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  326. outf << "\tvoid " << p.name << "(" << p.message_name << "&m){\n"
  327. ^
  328. gen.cpp:717:44: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
  329. outf << "\tvoid " << p.name << "(" << p.message_name << "&m){\n"
  330. ^
  331. gen.cpp:718:37: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
  332. "/*$TET$" << a.name << "$" << p.name << "*/\n"
  333. ^
  334. gen.cpp:743:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
  335. for (auto& x : a.ports){
  336. ^
  337. gen.cpp:743:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
  338. for (auto& x : a.ports){
  339. ^
  340. gen.cpp:744:11: error: request for member ‘type’ in ‘x’, which is of non-class type ‘int’
  341. if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
  342. ^
  343. gen.cpp:744:50: error: request for member ‘message_name’ in ‘x’, which is of non-class type ‘int’
  344. if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
  345. ^
  346. gen.cpp:744:76: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
  347. if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
  348. ^
  349. gen.cpp: In function ‘int main(int, char**)’:
  350. gen.cpp:765:10: error: ‘EXIT_FAILURE’ was not declared in this scope
  351. return EXIT_FAILURE;
  352. ^
  353. gen.cpp:777:10: error: ‘EXIT_FAILURE’ was not declared in this scope
  354. return EXIT_FAILURE;
  355. ^
  356. gen.cpp:780:51: error: invalid initialization of non-const reference of type ‘std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}’ from an rvalue of type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’
  357. if (!openparse(string(argv[2]), string("templet"))){
  358. ^
  359. gen.cpp:70:6: note: initializing argument 1 of ‘bool openparse(std::__cxx11::string&, std::__cxx11::string&)’
  360. bool openparse(string&name,string&pragma);
  361. ^
  362. gen.cpp:782:10: error: ‘EXIT_FAILURE’ was not declared in this scope
  363. return EXIT_FAILURE;
  364. ^
  365. gen.cpp:814:10: error: ‘EXIT_FAILURE’ was not declared in this scope
  366. return EXIT_FAILURE;
  367. ^
  368. gen.cpp:824:9: error: ‘EXIT_SUCCESS’ was not declared in this scope
  369. return EXIT_SUCCESS;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement