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

2012-10-08 Thread Brian Smith
weizhong qiang wrote: > 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 (wit

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

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

2012-09-14 Thread wdeng
Did you configure the building system yourself? Usually I build firefox on windows with the MozillaBuild tool which can be got at: http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe How to build firefox on windows, the reference is: https://developer.moz

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

2012-09-14 Thread Robert Story
On Fri, 14 Sep 2012 13:37:35 +0200 weizhong wrote: WQ> hi all, WQ> Since I need to call nss API inside the software (a middleware which is WQ> supposed to generally run on Win/Linux/MacOS) which I am developing, I WQ> have to compile nss under MinGW. But I always get the "undefined WQ> reference" e