G
Generic Usenet Account
Don't you often wish that compiler and linker messages for templates
were a little less cryptic and misleading?
Consider this:
I was getting this error message:
undefined reference to `vtable for <class-name>'
It turned out that I had not linked in the source for a virtual member
function. In hindsight, the message does make sense, but I must admit
that its verbiage threw me off for a while.
I have seen a similar thing with STL. A small syntax error may lead to
a barrage of error messages in the underlying Red-Black tree
implementation, which may completely throw off an unsuspecting
programmer.
--Gus
were a little less cryptic and misleading?
Consider this:
I was getting this error message:
undefined reference to `vtable for <class-name>'
It turned out that I had not linked in the source for a virtual member
function. In hindsight, the message does make sense, but I must admit
that its verbiage threw me off for a while.
I have seen a similar thing with STL. A small syntax error may lead to
a barrage of error messages in the underlying Red-Black tree
implementation, which may completely throw off an unsuspecting
programmer.
--Gus