Good day!
I'm currently working on the modification of an existing plug-in, so that it will work on Netscape 6. I usually get errors when compiling the dll and the errors came from the header files of XPCOM. My question is do I need to configure something on VC++ or do I need some files to be included.
I hope anyone could give an answer or ideas regarding this matter.
thanks.
Here are the errors that i have encountered:
C:\Authentic\NPCryptoAPI\nsrootidl.h(16) : error C2061: syntax error : identifier 'nsAString'
C:\Authentic\NPCryptoAPI\nsrootidl.h(16) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsrootidl.h(17) : error C2061: syntax error : identifier 'nsACString'
C:\Authentic\NPCryptoAPI\nsrootidl.h(17) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsID.h(74) : error C2061: syntax error : identifier 'inline'
C:\Authentic\NPCryptoAPI\nsID.h(92) : error C2491: 'ToString' : definition of dllimport function not allowed
C:\Authentic\NPCryptoAPI\nsID.h(94) : error C2059: syntax error : '}'
C:\Authentic\NPCryptoAPI\nsID.h(100) : error C2061: syntax error : identifier 'nsCID'
C:\Authentic\NPCryptoAPI\nsID.h(100) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsID.h(113) : error C2061: syntax error : identifier 'nsIID'
C:\Authentic\NPCryptoAPI\nsID.h(113) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsISupportsBase.h(80) : error C2485: 'novtable' : unrecognized extended attribute
C:\Authentic\NPCryptoAPI\nsISupportsBase.h(80) : error C2054: expected '(' to follow 'class'
C:\Authentic\NPCryptoAPI\nsISupportsBase.h(80) : error C2085: 'nsISupports' : not in formal parameter list
C:\Authentic\NPCryptoAPI\nsISupportsBase.h(80) : error C2143: syntax error : missing ';' before '{'
C:\Authentic\NPCryptoAPI\prlock.h(80) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\prlock.h(91) : error C2143: syntax error : missing ')' before '*'
C:\Authentic\NPCryptoAPI\prlock.h(91) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\prlock.h(91) : error C2059: syntax error : ')'
C:\Authentic\NPCryptoAPI\prlock.h(102) : error C2143: syntax error : missing ')' before '*'
C:\Authentic\NPCryptoAPI\prlock.h(102) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\prlock.h(102) : error C2059: syntax error : ')'
C:\Authentic\NPCryptoAPI\prlock.h(114) : error C2143: syntax error : missing ')' before '*'
C:\Authentic\NPCryptoAPI\prlock.h(114) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\prlock.h(114) : error C2059: syntax error : ')'
C:\Authentic\NPCryptoAPI\pratom.h(100) : error C2061: syntax error : identifier 'PRStackElem'
C:\Authentic\NPCryptoAPI\pratom.h(102) : error C2059: syntax error : '}'
C:\Authentic\NPCryptoAPI\pratom.h(115) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(127) : error C2143: syntax error : missing ')' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(127) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(127) : error C2143: syntax error : missing ';' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(127) : error C2059: syntax error : ')'
C:\Authentic\NPCryptoAPI\pratom.h(140) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(140) : error C2143: syntax error : missing ')' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(140) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(140) : error C2059: syntax error : ')'
C:\Authentic\NPCryptoAPI\pratom.h(154) : error C2143: syntax error : missing ')' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(154) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\pratom.h(154) : error C2059: syntax error : ')'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(45) : error C2061: syntax error : identifier 'nsISupports'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(45) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(149) : error C2061: syntax error : identifier 'nsrefcnt'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(150) : error C2061: syntax error : identifier 'mReleases'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(150) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(151) : error C2061: syntax error : identifier 'mCreates'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(151) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(152) : error C2061: syntax error : identifier 'mDestroys'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(152) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(157) : error C2059: syntax error : '}'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(170) : error C2143: syntax error : missing ')' before '*'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(170) : error C2081: 'nsTraceRefcntStats' : name in formal parameter list illegal
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(170) : error C2143: syntax error : missing '{' before '*'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(171) : error C2143: syntax error : missing ';' before '*'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(172) : error C2059: syntax error : 'type'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(172) : error C2059: syntax error : ')'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(178) : error C2061: syntax error : identifier 'nsTraceRefcnt'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(178) : error C2059: syntax error : ';'
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(178) : error C2449: found '{' at file scope (missing function header?)
C:\Authentic\NPCryptoAPI\nsTraceRefcnt.h(253) : error C2059: syntax error : '}'
C:\Authentic\NPCryptoAPI\nsIProgrammingLanguage.h(32) : error C2485: 'novtable' : unrecognized extended attribute
C:\Authentic\NPCryptoAPI\nsIProgrammingLanguage.h(32) : error C2054: expected '(' to follow 'class'
C:\Authentic\NPCryptoAPI\nsIProgrammingLanguage.h(32) : error C2085: 'nsIProgrammingLanguage' : not in formal parameter list
C:\Authentic\NPCryptoAPI\nsIProgrammingLanguage.h(32) : error C2143: syntax error : missing ';' before ':'
C:\Authentic\NPCryptoAPI\nsIProgrammingLanguage.h(32) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Error executing cl.exe.
--
/jerome
