build problems

"news.mozilla.org" <[email protected]> Wed, 29 Jul 2009 17:01:57 -0400
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
Hi,

I am trying to build NSPR version greater than 4.2 on windows.

I understand cygwin is the only way to build this.

I have Visual Studio 6.0 on my machine. I have tried both on a Windows XP 
and Windows Vista machine.

When i do a build as described on the build web page, I get a error at the 
final link step.

link: invalid option -- n
Try `link --help' for more information.
c:\moztools\bin\gmake.exe[2]: *** [libnspr4.dll] Error 1
c:\moztools\bin\gmake.exe[2]: Leaving directory 
`c:/work/nss-3.11.4-with-nspr-4.
6.4.tar/nss-3.11.4-with-nspr-4.6.4/nss-3.11.4/mozilla/nsprpub/target/pr/src'
c:\moztools\bin\gmake.exe[1]: *** [export] Error 2
c:\moztools\bin\gmake.exe[1]: Leaving directory 
`c:/work/nss-3.11.4-with-nspr-4.
6.4.tar/nss-3.11.4-with-nspr-4.6.4/nss-3.11.4/mozilla/nsprpub/target/pr'
c:\moztools\bin\gmake.exe: *** [export] Error 2

I have tried building version 4.6.4 and version 4.6.7. both give me the same 
link error.

Can anyone help with this issue and suggest how to build NSPR(version 4.2 
and higher) successfully on windows.


Also in Cygwin, during an NSPR build, which compiler does it use. And how is 
this compiler configured.
I installed Visual Studio 2005 on my machine, but the results were same as 
above.

Thanks
VT