All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Qemu with wxWidgets: g++ errors, ABI mismatch
@ 2006-06-23 22:58 Oliver Gerlich
  0 siblings, 0 replies; only message in thread
From: Oliver Gerlich @ 2006-06-23 22:58 UTC (permalink / raw)
  To: qemu-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

while playing with wxWidgets and Qemu, I noticed several problems and
hoped that you know a solution for this.

I added a single C++ source file (wxgui.cpp) for wxWidgets stuff, which
in turn includes vl.h . wxgui.cpp is compiled with g++ (tried 3.3 and
4.0), but that compiler gives some warnings about cpu-all.h, like this:

../cpu-all.h: In function ?uint64_t ldq_be_p(void*)?:
../cpu-all.h:419: error: pointer of type ?void *? used in arithmetic

Is there a solution other than casting ptr to uint8_t* and then back to
void* in the offending line?


Another more serious thing is that the wxWidgets libs on Debian
Testing/Unstable seem to be compiled with gcc 4.0 (this is probably the
case on other distros as well), while Qemu is compiled with gcc 3.3.
This leads to a runtime error:

$ i386-softmmu/qemu -cdrom /mnt/hda5/ubuntu.iso -boot d
Fatal Error: Mismatch between the program and library build versions
detected.
The library used 2.6 (no debug,Unicode,compiler with C++ ABI 1002,wx
containers,compatible with 2.4),
and your program used 2.6 (no debug,Unicode,compiler with C++ ABI 102,wx
containers,compatible with 2.4).
Aborted

Is there a way around this problem? Probably wxWidgets doesn't like the
different ABIs in gcc 3.3 and 4.0, but maybe some clever linking could
work around this? Any hints?

Thanks,
Oliver
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEnHIWTFOM6DcNJ6cRAmBtAKC05oTBZaPGgFZ9d4PkrSbsn2pt7QCfQK6t
+N3SSzz4ev5x+IF/9BAupY8=
=V8zh
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-23 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-23 22:58 [Qemu-devel] Qemu with wxWidgets: g++ errors, ABI mismatch Oliver Gerlich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.