Re: Compiling Binary XPCOM Plugin with Gecko 15

2012-08-19 Thread Pelota

> This almost certainly means that you are compiling your code with 
> -DDEBUG (or -D_DEBUG). 
> 
Yes, it is so.

Thx for the answer,
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Compiling Binary XPCOM Plugin with Gecko 15

2012-08-17 Thread Benjamin Smedberg

On 8/17/2012 3:14 AM, orangespidermas...@googlemail.com wrote:

I maintain a binary XPCOM component for Firefox. While compiling it with the 
Gecko SDK 15 I get the following error:
xpcomglue_s_nomozalloc.lib(nsStringAPI.obj) : error LNK2038: mismatch detected 
for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
This almost certainly means that you are compiling your code with 
-DDEBUG (or -D_DEBUG). The gecko SDK is not compiled in debug more (for 
obvious reasons). Microsoft has decided in its newer compilers not to 
allow mixing debug and non-debug libraries (probably because of ABI 
concerns), so if you want to compile a debug version of your code you 
will probably also need to compile your own debug SDK.




I compile with Visual Studio 2010. With Visual Studio 2008 there seems to be no 
problem, but the plug in won't be loaded.
Building with release mode is no problem.

Why is the debug level set to zero here? Is there a special debug version of it?

Is there a changelog/blog/FAW for the gecko SDK, where I can find out, how to 
change my compile environment for every new Gecko version?

No, there is not.

--BDS

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Compiling Binary XPCOM Plugin with Gecko 15

2012-08-17 Thread orangespidermaster

I maintain a binary XPCOM component for Firefox. While compiling it with the 
Gecko SDK 15 I get the following error:
xpcomglue_s_nomozalloc.lib(nsStringAPI.obj) : error LNK2038: mismatch detected 
for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj

I compile with Visual Studio 2010. With Visual Studio 2008 there seems to be no 
problem, but the plug in won't be loaded. 
Building with release mode is no problem.

Why is the debug level set to zero here? Is there a special debug version of 
it? 

Is there a changelog/blog/FAW for the gecko SDK, where I can find out, how to 
change my compile environment for every new Gecko version?
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform