Kevin Wooten wrote:

>  I have been looking through the source code, and noticed there seems to be
> no specification declaration on the nsISupports base class (e.g
> __attribute__((com_interface)) from gcc ). I am not saying this is
> incorrect, I am just trying to figure out if I can build XPCOM with one
> compiler and components with another. I really don't see how this would be
> possible since the ABI's would all be in the flavor of the compiler. Any
> clarification or comments?

On Windows, this isn't really a problem (the COM ABI is literally part
of the platform, I think only gcc doesn't follow it by default (you have
to use that "com_interface" attribute) and Mozilla doesn't use gcc).

On the Unixes, there has been some problems, but I think only gcc
supports the COM ABI, so switching from gcc native ABI to the COM
compatible ABI wouldn't help in regard to compatibility with vendors
compilers for example.

Anyway, there isn't much choice on Unixes for compilers (it's either the
vendors or gcc, you almost never see the 3rd-party compilers like Kai
C++).

-- 
Pierre Phaneuf

Reply via email to