Hello everyone again! :-)

> I'm developing an app in C++ with PRC tools.5. I have an inheritance
> hierarchy that works fine until I add a third inherited class. Then, when
I
> try to use 'new' with one of the derived classes, I get an 'invalid
opcode'
> from the emulator.

Done some more poking around with this problem - when I put the functions of
the third inherited class into a separate segment by themselves, the problem
magically went away...  This would suggest to me that the issue is in the
linker rather than the compiler.

Funnily enough, I continued on my merry way with my little app, only to find
that, when I added a global variable in a completely different file with
functions in a completely different code segment, the exact same problem
came back! This was the very first global in my application, and it was only
there to help me debug something else, but it's really got me scratching my
head.

I'm guessing that this is still consistent with the idea that there's a
little bug in the linker, but has ANYONE got any clue about what's going on
here?

Best regards to all,
Igor Siemienowicz



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to