Cryptic compiler/linker error messages with C++ templates

Discussion in 'C++' started by Generic Usenet Account, Mar 21, 2005.

  1. 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
     
    Generic Usenet Account, Mar 21, 2005
    #1
    1. Advertising

  2. 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?
     
    Victor Bazarov, Mar 21, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roy
    Replies:
    1
    Views:
    659
  2. JKop
    Replies:
    3
    Views:
    492
  3. recover
    Replies:
    2
    Views:
    834
    recover
    Jul 25, 2006
  4. none

    Cryptic error

    none, May 5, 2010, in forum: C++
    Replies:
    11
    Views:
    651
    Ian Collins
    May 5, 2010
  5. andrey the giant

    cryptic error in cgi script

    andrey the giant, Oct 13, 2010, in forum: Perl Misc
    Replies:
    2
    Views:
    205
    Uri Guttman
    Oct 13, 2010
Loading...

Share This Page