2007-12-25

Know your spelling

Picking such a title for a blog entry means that I need to be on edge. :-)

By not spelling cout properly, Diederik van der Boor was able to get the following gem out of GCC:

invalid operands of types ‘<unresolved overloaded function type>’ and ‘const char [15]’ to binary ‘operator<<’

Quite charming if you ask me :-) The error and solution have been added to my list of GCC errors.

4 Comments:

At 1:11 PM, Blogger Denis Washington said...

Do you also file GCC bugs about such uninformative error messages? That might help future programmers a lot.

 
At 1:15 PM, Blogger Johan Thelin said...

No, I did not, as the message says the right thing. We cannot blurt out a users guide for each error, instead, the list comes to your assistance.

 
At 11:15 AM, Anonymous Esben Mose Hansen said...

It might interest some readers that this blogs HTML-thingy did not correctly escape the error message, so that the empty quote are not actually empty.

 
At 11:55 AM, Blogger Johan Thelin said...

Thanks Esben, I've updated the text.

 

Post a Comment

<< Home