From: unmesh j. <unm...@ya...> - 2003-08-15 02:43:46
|
Hi, I am trying to compile OpenC++ 2.6.1 on Cygwin Gcc-3.2 But getting following error. Whats the problem? Thanks, Unmesh In file included from types.h:147, from buffer.h:40, from buffer.cc:38: ../gc/gc_cpp.h:132:1: warning: "_cdecl" redefined buffer.cc:1:1: warning: this is the location of the previous definition In file included from buffer.cc:38: buffer.h:81: `ostream' was not declared in this scope buffer.h:81: parse error before `,' token buffer.cc:221: prototype for `void Opencxx::Program::Write(ostream&, const char*)' does not match any in class `Opencxx::Program' buffer.h:81: candidate is: void Opencxx::Program::Write(...) buffer.cc: In member function `void Opencxx::Program::Write(ostream&, const char*)': buffer.cc:245: invalid conversion from `char' to `Opencxx::Ptree*' buffer.cc:245: initializing argument 2 of `ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*)' buffer.cc:256: invalid conversion from `char' to `Opencxx::Ptree*' buffer.cc:256: initializing argument 2 of `ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*)' buffer.cc:263: no match for `ostream& << const char[3]' operator ptree-core.h:174: candidates are: ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*) buffer.cc:270: invalid conversion from `char' to `Opencxx::Ptree*' buffer.cc:270: initializing argument 2 of `ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*)' buffer.cc:294: no match for `ostream& << const char[4]' operator ptree-core.h:174: candidates are: ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*) buffer.cc:299: invalid conversion from `char' to `Opencxx::Ptree*' buffer.cc:299: initializing argument 2 of `ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*)' buffer.cc:301: invalid conversion from `char' to `Opencxx::Ptree*' buffer.cc:301: initializing argument 2 of `ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*)' buffer.cc:301: no match for `ostream& << char*&' operator ptree-core.h:174: candidates are: ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*) buffer.cc:303: invalid conversion from `char' to `Opencxx::Ptree*' buffer.cc:303: initializing argument 2 of `ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*)' buffer.cc:308: invalid conversion from `char' to `Opencxx::Ptree*' buffer.cc:308: initializing argument 2 of `ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*)' buffer.cc:316: no match for `ostream& << const char[4]' operator ptree-core.h:174: candidates are: ostream& Opencxx::operator<<(ostream&, Opencxx::Ptree*) buffer.cc: In constructor `Opencxx::ProgramFile::ProgramFile(std::ifstream&, char*)': buffer.cc:388: `ios' undeclared (first use this function) buffer.cc:388: (Each undeclared identifier is reported only once for each function it appears in.) buffer.cc:388: parse error before `::' token buffer.cc: In member function `virtual char Opencxx::ProgramFromStdin::Get()': buffer.cc:427: `cerr' undeclared (first use this function) buffer.cc:432: `cin' undeclared (first use this function) buffer.cc: In constructor `Opencxx::ProgramString::ProgramString()': buffer.cc:453: no matching function for call to `operator new [](unsigned int, GCPlacement)' /usr/include/c++/3.2/new:80: candidates are: void* operator new [](unsigned int) /usr/include/c++/3.2/new:84: void* operator new [](unsigned int, const std::nothrow_t&) /usr/include/c++/3.2/new:90: void* operator new [](unsigned int, void*) buffer.cc: In member function `Opencxx::ProgramString& Opencxx::ProgramString::operator<<(const char*)': buffer.cc:475: no matching function for call to `operator new [](unsigned int, GCPlacement)' /usr/include/c++/3.2/new:80: candidates are: void* operator new [](unsigned int) /usr/include/c++/3.2/new:84: void* operator new [](unsigned int, const std::nothrow_t&) /usr/include/c++/3.2/new:90: void* operator new [](unsigned int, void*) buffer.cc: In member function `Opencxx::ProgramString& Opencxx::ProgramString::operator<<(char)': buffer.cc:494: no matching function for call to `operator new [](unsigned int, GCPlacement)' /usr/include/c++/3.2/new:80: candidates are: void* operator new [](unsigned int) /usr/include/c++/3.2/new:84: void* operator new [](unsigned int, const std::nothrow_t&) /usr/include/c++/3.2/new:90: void* operator new [](unsigned int, void*) make[2]: *** [buffer.lo] Error 1 make[2]: Leaving directory `/cygdrive/c/unmesh/opencxx-2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/cygdrive/c/unmesh/opencxx-2.6' make: *** [all] Error 2 CYGWIN> c:/progra~1/bin/occ bash: c:/progra~1/bin/occ: No such file or directory CYGWIN> c:/progra~1/occ/bin/occ c:/progra~1/occ/bin/occ: 1: Syntax error: "(" unexpected --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |