Hi and thanks for the answer, Yes, not quite what I expected but your suggestion might indeed be the solution I need.
Even if the problem that I'm encountering doesn't seeem to be related to the one you had, I'd will just export a C interface from the C++ code and keep the two isolated, rather than mess around with the build system since that looks like it's going nowhere. Regards, Cristi -----Original Message----- From: Liviu Ionescu [mailto:i...@livius.net] Sent: Wednesday, January 17, 2018 3:37 AM To: Ancuta, Cristian <cristian.anc...@intel.com> Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] Qemu c++ build question > On 17 Jan 2018, at 03:14, Ancuta, Cristian <cristian.anc...@intel.com> wrote: > > I'm currently working on implementing an emulation target in QEMU and the > implementation is in C++. it might not be the answer you expect, but last time I tried to do a similar thing I encountered a problem that prevented the direct C++ integration into QEMU. I don't know if it is still the case, but a field in one of the main headers defining objects was called `class`, a reserved name in C++. so be sure you isolate the C++ code outside QEMU and access it only via a C interface; also be sure you do not include the QEMU headers in C++ files. regards, Liviu