Author | Message | Time |
---|---|---|
Skywing | I was unlucky enough to run across this while working on one of my programs. Nothing like a 1.5 page long error message to motivate you when you're working on a program at 10PM, eh? | January 28, 2003, 12:20 AM |
MesiaH | niceee lol | January 28, 2003, 12:24 AM |
Skywing | Ah, I figured it. I'm sure that's a new record - a ~1.5 page error message for omitting a 'const'. | January 28, 2003, 12:28 AM |
Eibro | Maybe this will be of use... http://www.bdsoft.com/tools/stlfilt.html | February 3, 2003, 4:37 PM |
iago | I think I just beat the record for the most errors for missing one line (the line turned out to be "using namespace std;"): [pre]<umbowes1@antares:404>$ gcc 215a2.cpp 215a2.cpp:69: cannot declare field `Node::Data' to be of type `aSuperClass' 215a2.cpp:69: since the following virtual functions are abstract: 215a2.cpp:69: void aSuperClass::print() 215a2.cpp:69: class string aSuperClass::stringFormat() 215a2.cpp: In method `class string Node::stringFormat()': 215a2.cpp:30: `class aSuperClass' used where a `bool' was expected 215a2.cpp:32: no match for `ostrstream & << aSuperClass &' /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:77: candidates are: ostream::operator <<(char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:78: ostream::operator <<(unsigned char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:79: ostream::operator <<(signed char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:80: ostream::operator <<(const char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:82: ostream::operator <<(const unsigned char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:84: ostream::operator <<(const signed char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:85: ostream::operator <<(const void *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:86: ostream::operator <<(int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:87: ostream::operator <<(unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:88: ostream::operator <<(long int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:89: ostream::operator <<(long unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:91: ostream::operator <<(long long int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:92: ostream::operator <<(long long unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:94: ostream::operator <<(short int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:95: ostream::operator <<(short unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:97: ostream::operator <<(bool) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:99: ostream::operator <<(double) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:100: ostream::operator <<(float) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:104: ostream::operator <<(long double) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:106: ostream::operator <<(ostream & (*)(ostream &)) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:107: ostream::operator <<(ios & (*)(ios &)) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:108: ostream::operator <<(streambuf *) 215a2.cpp:41: no match for `ostream & << string (Node::)()' /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:77: candidates are: ostream::operator <<(char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:78: ostream::operator <<(unsigned char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:79: ostream::operator <<(signed char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:80: ostream::operator <<(const char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:82: ostream::operator <<(const unsigned char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:84: ostream::operator <<(const signed char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:85: ostream::operator <<(const void *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:86: ostream::operator <<(int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:87: ostream::operator <<(unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:88: ostream::operator <<(long int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:89: ostream::operator <<(long unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:91: ostream::operator <<(long long int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:92: ostream::operator <<(long long unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:94: ostream::operator <<(short int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:95: ostream::operator <<(short unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:97: ostream::operator <<(bool) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:99: ostream::operator <<(double) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:100: ostream::operator <<(float) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:104: ostream::operator <<(long double) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:106: ostream::operator <<(ostream & (*)(ostream &)) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:107: ostream::operator <<(ios & (*)(ios &)) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:108: ostream::operator <<(streambuf *) 215a2.cpp:50: no match for `ostream & << string (Node::)()' /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:77: candidates are: ostream::operator <<(char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:78: ostream::operator <<(unsigned char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:79: ostream::operator <<(signed char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:80: ostream::operator <<(const char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:82: ostream::operator <<(const unsigned char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:84: ostream::operator <<(const signed char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:85: ostream::operator <<(const void *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:86: ostream::operator <<(int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:87: ostream::operator <<(unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:88: ostream::operator <<(long int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:89: ostream::operator <<(long unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:91: ostream::operator <<(long long int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:92: ostream::operator <<(long long unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:94: ostream::operator <<(short int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:95: ostream::operator <<(short unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:97: ostream::operator <<(bool) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:99: ostream::operator <<(double) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:100: ostream::operator <<(float) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:104: ostream::operator <<(long double) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:106: ostream::operator <<(ostream & (*)(ostream &)) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:107: ostream::operator <<(ios & (*)(ios &)) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:108: ostream::operator <<(streambuf *) 215a2.cpp:58: no matching function for call to `ostrstream::put (NULL)' /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:58: candidates are: ostream::put(char) 215a2.cpp: In method `class string IntItem::stringFormat()': 215a2.cpp:82: no matching function for call to `ostrstream::put (NULL)' /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:58: candidates are: ostream::put(char) 215a2.cpp: In method `class string FloatItem::stringFormat()': 215a2.cpp:103: no matching function for call to `ostrstream::put (NULL)' /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:58: candidates are: ostream::put(char) 215a2.cpp: In method `class string TreeItem::stringFormat()': 215a2.cpp:140: no match for `ostream & << string (Node::)()' /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:77: candidates are: ostream::operator <<(char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:78: ostream::operator <<(unsigned char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:79: ostream::operator <<(signed char) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:80: ostream::operator <<(const char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:82: ostream::operator <<(const unsigned char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:84: ostream::operator <<(const signed char *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:85: ostream::operator <<(const void *) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:86: ostream::operator <<(int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:87: ostream::operator <<(unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:88: ostream::operator <<(long int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:89: ostream::operator <<(long unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:91: ostream::operator <<(long long int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:92: ostream::operator <<(long long unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:94: ostream::operator <<(short int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:95: ostream::operator <<(short unsigned int) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:97: ostream::operator <<(bool) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:99: ostream::operator <<(double) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:100: ostream::operator <<(float) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:104: ostream::operator <<(long double) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:106: ostream::operator <<(ostream & (*)(ostream &)) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:107: ostream::operator <<(ios & (*)(ios &)) /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:108: ostream::operator <<(streambuf *) 215a2.cpp:140: warning: multi-character character constant 215a2.cpp:144: no matching function for call to `ostrstream::put (NULL)' /usr/local/gcc/egcs-1.1.2/include/g++/iostream.h:58: candidates are: ostream::put(char) [/pre] | February 10, 2003, 2:40 PM |
iago | Ok, there was a bigger problem than that, but it was still nasty :) | February 10, 2003, 2:41 PM |
Noodlez | thats a very common mistake though :p | February 10, 2003, 7:19 PM |
iago | It's still long and horrible looking! :-P | February 10, 2003, 11:32 PM |