knowads
knowads

Reputation: 795

Can QEMU be compiled with g++?

The wiki seems to indicate the default wiki for QEMU is gcc and the alternative is clang..I am interested in utilizing c++ libraries in building QEMU directly. Is there a method to build QEMU with g++?

Upvotes: 0

Views: 592

Answers (1)

Peter Maydell
Peter Maydell

Reputation: 11403

Most of QEMU is C code and should therefore be built with a C compiler. A few small optional parts of it are C++, and are built with the C++ compiler -- ie g++ if using gcc, clang++ if using clang. configure will automatically find the C++ compiler and meson should automatically use it for source files with the right extension.

Upvotes: 1

Related Questions