[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Qemu uses C++ ??

From: Jun Koi
Subject: [Qemu-devel] Qemu uses C++ ??
Date: Sat, 30 May 2015 01:01:45 +0700


I always thought that Qemu never has C++ code inside, but I am surprise to see this when Aarch64 emulator is linked, as following (excerpt)

c++ -I/usr/include/pixman-1   -I/home/me/projects/qemu-2.3.0/dtc/libfdt -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common  -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all  -I../linux-headers -I.. -I/home/me/projects/qemu-2.3.0/target-arm -DNEED_CPU_H -I/home/me/projects/qemu-2.3.0/include -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g  -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g   -o qemu-system-aarch64 exec.o translate-all.o cpu-exec.o ...

A question: is there any reason to use C++ for linker here? Why does C linker not work?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]