Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gen.cpp: In function ‘void error(int)’:
- gen.cpp:81:7: error: ‘EXIT_FAILURE’ was not declared in this scope
- exit(EXIT_FAILURE);
- ^
- gen.cpp:81:19: error: ‘exit’ was not declared in this scope
- exit(EXIT_FAILURE);
- ^
- gen.cpp: In function ‘void print_message(std::ostream&, message&)’:
- gen.cpp:230:13: error: ‘x’ does not name a type
- for (auto x : m.subm){
- ^
- gen.cpp:240:3: error: expected ‘;’ before ‘s’
- s << ")";
- ^
- gen.cpp:241:2: error: expected primary-expression before ‘}’ token
- }
- ^
- gen.cpp:241:2: error: expected ‘)’ before ‘}’ token
- gen.cpp:241:2: error: expected primary-expression before ‘}’ token
- gen.cpp: In function ‘void print_actor(std::ostream&, actor&)’:
- gen.cpp:258:13: error: ‘x’ does not name a type
- for (auto x : a.ports){
- ^
- gen.cpp:268:3: error: expected ‘;’ before ‘s’
- s << ")";
- ^
- gen.cpp:269:2: error: expected primary-expression before ‘}’ token
- }
- ^
- gen.cpp:269:2: error: expected ‘)’ before ‘}’ token
- gen.cpp:269:2: error: expected primary-expression before ‘}’ token
- gen.cpp: In function ‘void design(std::ofstream&, std::__cxx11::list<message>&, std::__cxx11::list<actor>&)’:
- gen.cpp:292:20: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (message& m : mlist){
- ^
- gen.cpp:301:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for (auto& x : m.subm){
- ^
- gen.cpp:301:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& x : m.subm){
- ^
- gen.cpp:302:37: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- if (first){ outf << "TAG_" << x.name; first = false; }
- ^
- gen.cpp:303:31: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- else outf << ",TAG_" << x.name;
- ^
- gen.cpp:309:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for (auto& x : m.subm){
- ^
- gen.cpp:309:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& x : m.subm){
- ^
- gen.cpp:310:12: error: request for member ‘dummy’ in ‘x’, which is of non-class type ‘int’
- if (!x.dummy){
- ^
- gen.cpp:311:31: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- outf << "\tstruct " << x.name << "{\n";
- ^
- gen.cpp:312:46: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- outf << "/*$TET$" << m.name << "$" << x.name << "*/\n"
- ^
- gen.cpp:314:27: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- outf << "\t} _" << x.name << ";\n\n";
- ^
- gen.cpp:355:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (actor& a : alist){
- ^
- gen.cpp:371:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
- for (auto& p:a.ports){
- ^
- gen.cpp:371:16: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& p:a.ports){
- ^
- gen.cpp:372:10: error: request for member ‘type’ in ‘p’, which is of non-class type ‘int’
- if (p.type == port::CLIENT)
- ^
- gen.cpp:373:23: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
- outf << "\t" << p.message_name << "* " << p.name << "();\n";
- ^
- gen.cpp:373:49: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\t" << p.message_name << "* " << p.name << "();\n";
- ^
- gen.cpp:374:15: error: request for member ‘type’ in ‘p’, which is of non-class type ‘int’
- else if (p.type == port::SERVER)
- ^
- gen.cpp:375:28: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "*);\n";
- ^
- gen.cpp:375:45: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "*);\n";
- ^
- gen.cpp:387:15: error: ISO C++ forbids declaration of ‘m’ with no type [-fpermissive]
- for (auto &m : mlist){
- ^
- gen.cpp:387:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto &m : mlist){
- ^
- gen.cpp:388:11: error: request for member ‘subm’ in ‘m’, which is of non-class type ‘int’
- if (m.subm.empty() && !m.duplex){
- ^
- gen.cpp:388:30: error: request for member ‘duplex’ in ‘m’, which is of non-class type ‘int’
- if (m.subm.empty() && !m.duplex){
- ^
- gen.cpp:390:34: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- outf << "\tvoid recv_" << m.name << "(" << m.name << "&m){\n"
- ^
- gen.cpp:390:51: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- outf << "\tvoid recv_" << m.name << "(" << m.name << "&m){\n"
- ^
- gen.cpp:391:44: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- "/*$TET$" << a.name << "$recv_" << m.name << "*/\n"
- ^
- gen.cpp:398:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
- for (auto &p : a.ports){
- ^
- gen.cpp:398:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto &p : a.ports){
- ^
- gen.cpp:400:27: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "&m){\n"
- ^
- gen.cpp:400:44: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "&m){\n"
- ^
- gen.cpp:401:37: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- "/*$TET$" << a.name << "$" << p.name << "*/\n"
- ^
- gen.cpp:426:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for (auto& x : a.ports){
- ^
- gen.cpp:426:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& x : a.ports){
- ^
- gen.cpp:427:11: error: request for member ‘type’ in ‘x’, which is of non-class type ‘int’
- if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
- ^
- gen.cpp:427:50: error: request for member ‘message_name’ in ‘x’, which is of non-class type ‘int’
- if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
- ^
- gen.cpp:427:76: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
- ^
- gen.cpp: In function ‘void deploy(std::ofstream&, std::__cxx11::list<message>&, std::__cxx11::list<actor>&)’:
- gen.cpp:462:13: error: ISO C++ forbids declaration of ‘m’ with no type [-fpermissive]
- for (auto& m:mlist){
- ^
- gen.cpp:462:15: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& m:mlist){
- ^
- gen.cpp:463:9: error: request for member ‘duplex’ in ‘m’, which is of non-class type ‘int’
- if(!m.duplex){
- ^
- gen.cpp:465:24: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- outf << "MES_" << m.name;
- ^
- gen.cpp:477:20: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (message& m : mlist){
- ^
- gen.cpp:507:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for (auto& x : m.subm){
- ^
- gen.cpp:507:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& x : m.subm){
- ^
- gen.cpp:508:37: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- if (first){ outf << "TAG_" << x.name; first = false; }
- ^
- gen.cpp:509:31: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- else outf << ",TAG_" << x.name;
- ^
- gen.cpp:515:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for (auto& x : m.subm){
- ^
- gen.cpp:515:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& x : m.subm){
- ^
- gen.cpp:516:12: error: request for member ‘dummy’ in ‘x’, which is of non-class type ‘int’
- if (!x.dummy){
- ^
- gen.cpp:518:31: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- outf << "\tstruct " << x.name << "{\n";
- ^
- gen.cpp:519:46: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- outf << "/*$TET$" << m.name << "$" << x.name << "*/\n"
- ^
- gen.cpp:521:27: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- outf << "\t} _" << x.name << ";\n\n";
- ^
- gen.cpp:601:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (actor& a : alist){
- ^
- gen.cpp:610:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for (auto& x : a.ports){
- ^
- gen.cpp:610:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& x : a.ports){
- ^
- gen.cpp:612:38: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- if (first){ outf << "TAG_" << x.name << "=START+" << ++tag_num; first = false; }
- ^
- gen.cpp:613:32: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- else outf << ",TAG_" << x.name << "=START+" << ++tag_num;
- ^
- gen.cpp:616:38: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- if (first){ outf << "TAG_" << x.name; first = false; }
- ^
- gen.cpp:617:32: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- else outf << ",TAG_" << x.name;
- ^
- gen.cpp:624:14: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for (auto& x : a.ports)
- ^
- gen.cpp:624:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& x : a.ports)
- ^
- gen.cpp:625:10: error: request for member ‘type’ in ‘x’, which is of non-class type ‘int’
- if (x.type == port::CLIENT){ have_client_ports = true; break; };
- ^
- gen.cpp:632:14: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for(auto& x : a.ports)
- ^
- gen.cpp:632:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for(auto& x : a.ports)
- ^
- gen.cpp:633:11: error: request for member ‘type’ in ‘x’, which is of non-class type ‘int’
- if (x.type == port::CLIENT){
- ^
- gen.cpp:635:23: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- outf << "_" << x.name << "(this, &e, TAG_" << x.name << ")";
- ^
- gen.cpp:635:54: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- outf << "_" << x.name << "(this, &e, TAG_" << x.name << ")";
- ^
- gen.cpp:672:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
- for (auto& p : a.ports){
- ^
- gen.cpp:672:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& p : a.ports){
- ^
- gen.cpp:673:10: error: request for member ‘type’ in ‘p’, which is of non-class type ‘int’
- if (p.type == port::CLIENT)
- ^
- gen.cpp:674:23: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
- outf << "\t" << p.message_name << "* " << p.name << "(){return &_" << p.name << ";}\n";
- ^
- gen.cpp:674:49: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\t" << p.message_name << "* " << p.name << "(){return &_" << p.name << ";}\n";
- ^
- gen.cpp:674:77: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\t" << p.message_name << "* " << p.name << "(){return &_" << p.name << ";}\n";
- ^
- gen.cpp:675:15: error: request for member ‘type’ in ‘p’, which is of non-class type ‘int’
- else if (p.type == port::SERVER)
- ^
- gen.cpp:676:28: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "*m){m->_server_id=TAG_"<<p.name<<"; m->_srv=this;}\n";
- ^
- gen.cpp:676:45: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "*m){m->_server_id=TAG_"<<p.name<<"; m->_srv=this;}\n";
- ^
- gen.cpp:676:89: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "*m){m->_server_id=TAG_"<<p.name<<"; m->_srv=this;}\n";
- ^
- gen.cpp:684:14: error: ISO C++ forbids declaration of ‘m’ with no type [-fpermissive]
- for (auto& m : mlist)
- ^
- gen.cpp:684:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& m : mlist)
- ^
- gen.cpp:685:11: error: request for member ‘duplex’ in ‘m’, which is of non-class type ‘int’
- if (!m.duplex && a.response_any) outf << "\t\t\tcase MES_" << m.name << ": ((" << a.name << "*)a)->recv_" << m.name << "(*((" << m.name << "*)m)); break;\n";
- ^
- gen.cpp:685:68: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- if (!m.duplex && a.response_any) outf << "\t\t\tcase MES_" << m.name << ": ((" << a.name << "*)a)->recv_" << m.name << "(*((" << m.name << "*)m)); break;\n";
- ^
- gen.cpp:685:115: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- if (!m.duplex && a.response_any) outf << "\t\t\tcase MES_" << m.name << ": ((" << a.name << "*)a)->recv_" << m.name << "(*((" << m.name << "*)m)); break;\n";
- ^
- gen.cpp:685:135: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- if (!m.duplex && a.response_any) outf << "\t\t\tcase MES_" << m.name << ": ((" << a.name << "*)a)->recv_" << m.name << "(*((" << m.name << "*)m)); break;\n";
- ^
- gen.cpp:687:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
- for (auto& p : a.ports)
- ^
- gen.cpp:687:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& p : a.ports)
- ^
- gen.cpp:688:35: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\t\t\tcase TAG_" << p.name << ": ((" << a.name << "*)a)->" << p.name << "(*((" << p.message_name << "*)m)); break;\n";
- ^
- gen.cpp:688:77: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\t\t\tcase TAG_" << p.name << ": ((" << a.name << "*)a)->" << p.name << "(*((" << p.message_name << "*)m)); break;\n";
- ^
- gen.cpp:688:97: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
- outf << "\t\t\tcase TAG_" << p.name << ": ((" << a.name << "*)a)->" << p.name << "(*((" << p.message_name << "*)m)); break;\n";
- ^
- gen.cpp:704:15: error: ISO C++ forbids declaration of ‘m’ with no type [-fpermissive]
- for (auto &m : mlist){
- ^
- gen.cpp:704:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto &m : mlist){
- ^
- gen.cpp:705:11: error: request for member ‘subm’ in ‘m’, which is of non-class type ‘int’
- if (m.subm.empty() && !m.duplex){
- ^
- gen.cpp:705:30: error: request for member ‘duplex’ in ‘m’, which is of non-class type ‘int’
- if (m.subm.empty() && !m.duplex){
- ^
- gen.cpp:707:34: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- outf << "\tvoid recv_" << m.name << "(" << m.name << "&m){\n"
- ^
- gen.cpp:707:51: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- outf << "\tvoid recv_" << m.name << "(" << m.name << "&m){\n"
- ^
- gen.cpp:708:44: error: request for member ‘name’ in ‘m’, which is of non-class type ‘int’
- "/*$TET$" << a.name << "$recv_" << m.name << "*/\n"
- ^
- gen.cpp:715:14: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
- for (auto &p : a.ports){
- ^
- gen.cpp:715:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto &p : a.ports){
- ^
- gen.cpp:717:27: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "&m){\n"
- ^
- gen.cpp:717:44: error: request for member ‘message_name’ in ‘p’, which is of non-class type ‘int’
- outf << "\tvoid " << p.name << "(" << p.message_name << "&m){\n"
- ^
- gen.cpp:718:37: error: request for member ‘name’ in ‘p’, which is of non-class type ‘int’
- "/*$TET$" << a.name << "$" << p.name << "*/\n"
- ^
- gen.cpp:743:15: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
- for (auto& x : a.ports){
- ^
- gen.cpp:743:19: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
- for (auto& x : a.ports){
- ^
- gen.cpp:744:11: error: request for member ‘type’ in ‘x’, which is of non-class type ‘int’
- if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
- ^
- gen.cpp:744:50: error: request for member ‘message_name’ in ‘x’, which is of non-class type ‘int’
- if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
- ^
- gen.cpp:744:76: error: request for member ‘name’ in ‘x’, which is of non-class type ‘int’
- if (x.type == port::CLIENT)outf << "\t" << x.message_name << " _" << x.name << ";" << endl;
- ^
- gen.cpp: In function ‘int main(int, char**)’:
- gen.cpp:765:10: error: ‘EXIT_FAILURE’ was not declared in this scope
- return EXIT_FAILURE;
- ^
- gen.cpp:777:10: error: ‘EXIT_FAILURE’ was not declared in this scope
- return EXIT_FAILURE;
- ^
- 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>}’
- if (!openparse(string(argv[2]), string("templet"))){
- ^
- gen.cpp:70:6: note: initializing argument 1 of ‘bool openparse(std::__cxx11::string&, std::__cxx11::string&)’
- bool openparse(string&name,string&pragma);
- ^
- gen.cpp:782:10: error: ‘EXIT_FAILURE’ was not declared in this scope
- return EXIT_FAILURE;
- ^
- gen.cpp:814:10: error: ‘EXIT_FAILURE’ was not declared in this scope
- return EXIT_FAILURE;
- ^
- gen.cpp:824:9: error: ‘EXIT_SUCCESS’ was not declared in this scope
- return EXIT_SUCCESS;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement