qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH 02/10] Fix errors and warnings while compili


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH 02/10] Fix errors and warnings while compiling with c++ compilier
Date: Fri, 15 Feb 2013 09:54:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Il 15/02/2013 04:56, Tomoki Sekiyama ha scritto:
> 
>> > Now, is using C++ required? Why can't you use plain C?
> It is because Windows COM+ framework (which VSS uses) is designed based
> on C++ objective programming interface. Implementing this with plain C
> is theoretically possible, but that will require parsing C++ objects'
> vtables manually so the code would be much complex.
> (However, It might be possible to push Windows-specific C++ stuff into
>  a DLL to and avoid involving qemu related headers.)

I don't think this is necessary.  Use C++ where you see fit, as long as
it's a separate file it should not be a problem.

The only problem could be that we need to use the C++ compiler to link,
instead of the C compiler.

Paolo



reply via email to

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