By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,838 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,838 IT Pros & Developers. It's quick & easy.

Cryptic compiler/linker error messages with C++ templates

P: n/a
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

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Generic Usenet Account wrote:
Don't you often wish that compiler and linker messages for templates
were a little less cryptic and misleading?


Yes. And I also often wish we had more free tools that did most of the
work for us, and that my employers were more generous, and the weather
were milder, and the roads didn't have pot-holes. What's your point, Gus?
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.