Vtables in shared libraries?

2008-05-28 Thread David Kendall
I've finally cobbled together my C++ shared library, and I'm getting lots of
the following error messages:

'MyClass::__vt' has illegal single segment 32-bit reference to
'MyClass::Func()'.

*Please* tell me there's some compiler/linker setting I've got wrong, and
that I *can* use virtuals in my shared library...  The library is only 25K,
even before dead-code stripping.

David






-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Vtables in shared libraries?

2000-11-08 Thread David Kendall

I've finally cobbled together my C++ shared library, and I'm getting lots of
the following error messages:

'MyClass::__vt' has illegal single segment 32-bit reference to
'MyClass::Func()'.

*Please* tell me there's some compiler/linker setting I've got wrong, and
that I *can* use virtuals in my shared library...  The library is only 25K,
even before dead-code stripping.

David




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



RE: Vtables in shared libraries?

2000-11-08 Thread Fitzpatrick, Joe

I'm not sure what is causing your specific error, but I would be very
surprised if you could get this to work with compiler/linker settings alone.
Palm shared libraries have no data segment.  If you want to use global data
of any kind you generally have to allocate memory from the OS and then save
the pointer in a Feature so you can find it later.

-jjf

-Original Message-
From: David Kendall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 2:52 PM
To: Palm Developer Forum
Subject: Vtables in shared libraries?


I've finally cobbled together my C++ shared library, and I'm getting lots of
the following error messages:

'MyClass::__vt' has illegal single segment 32-bit reference to
'MyClass::Func()'.

*Please* tell me there's some compiler/linker setting I've got wrong, and
that I *can* use virtuals in my shared library...  The library is only 25K,
even before dead-code stripping.

David




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

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