Re: undefined reference to '_InterlockedIncrement' when compiling nss under MinGW

2012-09-15 Thread weizhong qiang
hi, Thanks for the instruction. I tried the build of nss on with mozillabuild tool (with MS VC and MS SDK, using MS compiler for compilation) on Win7. And the build did pass. But the build with MinGW/MSYS (using gcc for compilation) still failed. I hope the build (with MS compiler) can be used fo

Re: undefined reference to '_InterlockedIncrement' when compiling nss under MinGW

2012-09-15 Thread weizhong qiang
hi, Thanks for your help. For the two different patches, your patch still gets the same error; the other patch gets better result(nspr compilation passed), but another error appears ("cl: command not found"), I don't know why the the compilation before this error uses gcc to compile, but why he

Accessing Mozilla NSS library functions in JavaScript-XPCOM

2012-09-15 Thread Brian Teh
Hi, Currently, my extension uses the NSS library which is coded in C++. But due to 6-week release cycle for Thunderbird, I am wondering whether are there examples on how to use Mozilla NSS for JavaScript-XPCOM, to avoid the need for re-compiling the binary components? Could someone point me