[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Qemu c++ build question
From: |
Ancuta, Cristian |
Subject: |
Re: [Qemu-devel] Qemu c++ build question |
Date: |
Wed, 17 Jan 2018 01:50:09 +0000 |
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:address@hidden
Sent: Wednesday, January 17, 2018 3:37 AM
To: Ancuta, Cristian <address@hidden>
Cc: address@hidden
Subject: Re: [Qemu-devel] Qemu c++ build question
> On 17 Jan 2018, at 03:14, Ancuta, Cristian <address@hidden> 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