How to detect non-implementation

Discussion in 'C++' started by usenet0@ogeorg.com, Oct 10, 2005.

  1. Guest

    Hi,

    I am trying to trace a weird bug in a program, and it looks like it
    comes from something like a constructor I have declared in its class,
    but I have not implemented. You might say "So why don't you just
    implement it?"... It's just that doing this recreates the bug I have...

    What surprises me is that the compiler does not complain. I create an
    object whose constructor is declared but not implemented. How can this
    be?

    The question is: is there in gcc an option to tell him to complain
    about this?

    The compiler I use is QCC in QNX, which is a wrapper for gcc 2.95.2
    19991024.

    Thanks,

    Olivier
    , Oct 10, 2005
    #1
    1. Advertising

  2. mlimber Guest

    wrote:
    > Hi,
    >
    > I am trying to trace a weird bug in a program, and it looks like it
    > comes from something like a constructor I have declared in its class,
    > but I have not implemented. You might say "So why don't you just
    > implement it?"... It's just that doing this recreates the bug I have...
    >
    > What surprises me is that the compiler does not complain. I create an
    > object whose constructor is declared but not implemented. How can this
    > be?
    >
    > The question is: is there in gcc an option to tell him to complain
    > about this?
    >
    > The compiler I use is QCC in QNX, which is a wrapper for gcc 2.95.2
    > 19991024.
    >
    > Thanks,
    >
    > Olivier


    The linker should complain, not the compiler. Please post a minimal but
    complete example that demonstrates the problem.

    Cheers! --M
    mlimber, Oct 10, 2005
    #2
    1. Advertising

  3. wrote:
    > Hi,
    >
    > I am trying to trace a weird bug in a program, and it looks like it
    > comes from something like a constructor I have declared in its class,
    > but I have not implemented. You might say "So why don't you just
    > implement it?"... It's just that doing this recreates the bug I have...
    >
    > What surprises me is that the compiler does not complain. I create an
    > object whose constructor is declared but not implemented. How can this
    > be?


    No idea, you need to post the code.

    >
    > The question is: is there in gcc an option to tell him to complain
    > about this?


    At this point it seems more likely that the error is in your code,
    rather than gcc. Post the code.

    >
    > The compiler I use is QCC in QNX, which is a wrapper for gcc 2.95.2
    > 19991024.
    >
    > Thanks,
    >
    > Olivier
    >


    john
    John Harrison, Oct 10, 2005
    #3
    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. David Segall
    Replies:
    6
    Views:
    6,376
    GaryM
    Nov 10, 2003
  2. SHP

    detect non reentrant function

    SHP, Apr 8, 2008, in forum: C Programming
    Replies:
    1
    Views:
    702
    Antoninus Twink
    Apr 8, 2008
  3. Michael Tsang
    Replies:
    32
    Views:
    1,107
    Richard Bos
    Mar 1, 2010
  4. Michael Tsang
    Replies:
    54
    Views:
    1,193
    Phil Carmody
    Mar 30, 2010
  5. sanket
    Replies:
    7
    Views:
    1,003
    Tsung
    Nov 3, 2011
Loading...

Share This Page