How to detect non-implementation

U

usenet0

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
 
M

mlimber

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
 
J

John Harrison

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top