This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Function Tables...
- To: <gcc at gcc dot gnu dot org>
- Subject: Function Tables...
- From: "Peter R. Torpman" <peter dot torpman at ericsson dot com>
- Date: Fri, 13 Jul 2001 15:41:44 +0200
Hi!
We're programming COM-like code here and when using C to call C++
functions we are using the following macro:
#define C_ADJUST_THIS(iface, This, member) \
(iface*)(((char*)(This))+(This)->lpVtbl->offset_##member)
This worked fine with GCC 2.95.2. Has the function table layout been
changed?
Right now we're getting SIGBUS all over the place because we cannot
find the functions within classes...
Anyone got any ideas?
Regards,
/ Peter
BEGIN:VCARD
VERSION:2.1
N:Torpman;Peter;R
FN:Peter R Torpman
ORG:Ericsson Infotech AB;EIN/T/P
TITLE:Software Designer
TEL;WORK;VOICE:+46 (0) 54 193505
TEL;PAGER;VOICE:ECN: 863 3505
ADR;WORK:;;Kanikenäsbanken 12;Karlstad;Värmland;S-65226;Sweden
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Kaniken=E4sbanken 12=0D=0AKarlstad, V=E4rmland S-65226=0D=0ASweden
EMAIL;PREF;INTERNET:Peter.R.Torpman@ein.ericsson.se
REV:20010713T134144Z
END:VCARD