On 11/06/2025 14.28, 肖 嘉赫 wrote:
Hello,

I am using the latest QEMU 10.0.2. I want to add a C++ plugin in QEMU. But when I am compile the C++ file, it tells there is no host machine compiler. Then I tried to add the following codes in meson.build file:

all_langages += ['cpp']
>
cxx = meson.get_compiler('g++')

I guess that should be

 cxx = meson.get_compiler('cpp')

instead.

It still returns an error which "Tried to access compiler for language "g+ +", not specified for host machine."
How can I configure the meson environment?

We concsiously disable C++ for QEMU a while ago since we want to keep the project in clean C (see commit 6db77bb2c1aa1e59b4a04ba3c9b4b8bb17609d48), so if you want to do something with C++ in QEMU, you're basically on your own.

 Thomas


Reply via email to