• Welcome to Valhalla Legends Archive.
 

Programmer's worst nightmare?

Started by Skywing, January 27, 2003, 06:20 PM

Previous topic - Next topic

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?

Mesiah / haiseM

#1
niceee lol
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Skywing

#2
Ah, I figured it.  I'm sure that's a new record - a ~1.5 page error message for omitting a 'const'.

Eibro

#3
Maybe this will be of use...
http://www.bdsoft.com/tools/stlfilt.html
Eibro of Yeti Lovers.

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;"):

<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)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


iago

#5
Ok, there was a bigger problem than that, but it was still nasty  :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Noodlez

#6
thats a very common mistake though :p

iago

#7
It's still long and horrible looking! :-P
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*