Qemu with wxWidgets: g++ errors, ABI mismatch
-----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-----