Re: Windows xpcomglue link errors [solved]
Benjamin Smedberg <[email protected]> Sun, 04 Sep 2011 10:22:41 -0400
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Message-ID | <[email protected]> |
On 9/3/2011 11:07 AM, [email protected] wrote: > Apologies if this gets double-posted > > > Why is this defined only when XP_WIN is defined? A bug? Because __fastcall is a Windows-specific annotation. GCC uses a different syntax on x86-Linux. The problem here appears to be that you aren't including xpcom-config.h, which is the file that contains platform-specific #defines necessary for nscore.h and other headers to detect compilers and platforms properly. --BDS