Discussion:
Error while compiling my component
karthikeyan.R
2004-07-16 12:00:27 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I have compiled the mozilla source in windows 2000 using VC++ 6.&nbsp; While
compiling my component i get the following error. <br>
<br>
The path used to compile my component is <br>
<b>c:\mingw\bin;C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BIN;C:\PROGRA~1\<br>
MICROS~3\Common\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;<br>
D:\moztools\bin;D:\cygwin\bin;C:\Program
Files\mozilla.org\mozilla;D:\Perl\bin\;D:\vc7\bin;<br>
<br>
</b>../../../dist/include/dom\nsIDOMNSEvent.h(76) : error C2059: syntax
error : 'constant'<br>
../../../dist/include/dom\nsIDOMNSEvent.h(76) : error C2143: syntax
error : missing ';' before '}'<br>
../../../dist/include/dom\nsIDOMNSEvent.h(76) : error C2238: unexpected
token(s) preceding ';'<br>
../../../dist/include/dom\nsIDOMNSEvent.h(102) : error C2575:
'GetOriginalTarget' : only member func<br>
tions and bases can be virtual<br>
../../../dist/include/dom\nsIDOMNSEvent.h(102) : error C2072:
'GetOriginalTarget' : initialization o<br>
f a function<br>
../../../dist/include/dom\nsIDOMNSEvent.h(115) : error C2575:
'GetExplicitOriginalTarget' : only mem<br>
ber functions and bases can be virtual<br>
../../../dist/include/dom\nsIDOMNSEvent.h(115) : error C2072:
'GetExplicitOriginalTarget' : initiali<br>
zation of a function<br>
../../../dist/include/dom\nsIDOMNSEvent.h(118) : error C2575:
'GetTmpRealOriginalTarget' : only memb<br>
er functions and bases can be virtual<br>
../../../dist/include/dom\nsIDOMNSEvent.h(118) : error C2072:
'GetTmpRealOriginalTarget' : initializ<br>
ation of a function<br>
../../../dist/include/dom\nsIDOMNSEvent.h(121) : error C2575:
'PreventBubble' : only member function<br>
s and bases can be virtual<br>
../../../dist/include/dom\nsIDOMNSEvent.h(121) : error C2072:
'PreventBubble' : initialization of a<br>
function<br>
../../../dist/include/dom\nsIDOMNSEvent.h(124) : error C2575:
'PreventCapture' : only member functio<br>
ns and bases can be virtual<br>
../../../dist/include/dom\nsIDOMNSEvent.h(124) : error C2072:
'PreventCapture' : initialization of a<br>
&nbsp;function<br>
../../../dist/include/dom\nsIDOMNSEvent.h(126) : error C2143: syntax
error : missing ';' before '}'<br>
../../../dist/include/dom\nsIDOMNSEvent.h(126) : error C2143: syntax
error : missing ';' before '}'<br>
../../../dist/include/dom\nsIDOMNSEvent.h(126) : error C2143: syntax
error : missing ';' before '}'<br>
d:/mozilla/xpcom/sample/qecomp/nsUtil.h(1432) : error C2664:
'GetSelectedIndex' : cannot convert par<br>
ameter 1 from 'long *' to 'int *'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or functi<br>
on-style cast<br>
d:/mozilla/xpcom/sample/qecomp/nsRecorderImpl.cpp(671) : error C2039:
'GetOriginalTarget' : is not a<br>
&nbsp;member of 'nsDerivedSafe&lt;class nsIDOMNSEvent&gt;'<br>
make[1]: *** [nsRecorderImpl.obj] Error 2<br>
make[1]: Leaving directory `/cygdrive/d/mozilla/xpcom/sample/qecomp'<br>
make: *** [all] Error 2<br>
<br>
<br>
Kindly help me to solve this error. <br>
<br>
Thanks in advance,<br>
Karthikeyan.R<br>
</body>
</html>
Christian Biesinger
2004-07-16 14:22:05 UTC
Permalink
Post by karthikeyan.R
make[1]: *** [nsRecorderImpl.obj] Error 2<br>
make[1]: Leaving directory `/cygdrive/d/mozilla/xpcom/sample/qecomp'<br>
make: *** [all] Error 2<br>
It's a bit hard to say anything without seeing your nsRecorderImpl.cpp
and possibly the .h file. I suspect some header you are including
#define's a name that nsIDOMNSEvent wants to use as an identifier. I'd
suggest including nsIDOMNSEvent.h as the first header...

--

Loading...