faye040697
asked on
Creating a Netscape Plugin with Watcom
I am having problems getting Watcom to compile the sample
NPCLOCK plugin. It reports a syntax error at line 59 of
NPOS2.CPP (in common).
This line is a function definition, and I find it hard to
believe that there would be a syntax error in the
distributed code. Has anyone had this problem and can shed
some light on its solution please?
I have the Warp toolkit and Watcom 10.6
NPCLOCK plugin. It reports a syntax error at line 59 of
NPOS2.CPP (in common).
This line is a function definition, and I find it hard to
believe that there would be a syntax error in the
distributed code. Has anyone had this problem and can shed
some light on its solution please?
I have the Warp toolkit and Watcom 10.6
ASKER
NPOS2.CPP:
58:NPError OSCALL NP_EXPORT
59:NP_GetEntryPoints(NPPlu ginFuncs* pFuncs)
60:{
error log:
wpp386 ..\..\common\npos2.cpp
-i=d:\watcom\h;d:\watcom\h \os2;d:\wa tcom\netsc ape\includ e -w4
-e25 -zq -otexan -d2 -bd -5r -bt=os2 -mf
..\..\common\npos2.cpp(34) : Warning! W014: (col 1) no reference
to symbol 'hmod'
..\..\common\npos2.cpp(34) : Note! N392: (col 1) 'unsigned long
hmod' in 'unsigned long DLLInitTerm( unsigned long, int )'
defined in: ..\..\common\npos2.cpp(31) (col 27)
..\..\common\npos2.cpp(34) : Warning! W014: (col 1) no reference
to symbol 'Flag'
..\..\common\npos2.cpp(34) : Note! N392: (col 1) 'int Flag' in
'unsigned long DLLInitTerm( unsigned long, int )' defined in:
..\..\common\npos2.cpp(31) (col 37)
..\..\common\npos2.cpp(59) : Error! E006: (col 1) syntax error;
probable cause: missing ';'
..\..\common\npos2.cpp(254 ): Warning! W014: (col 1) no reference
to symbol 'g_pluginFuncs'
..\..\common\npos2.cpp(254 ): Note! N392: (col 1) '_NPPluginFuncs
* g_pluginFuncs' defined in: ..\..\common\npos2.cpp(48) (col 23)
Error(E42): Last command making
(d:\watcom\netscape\sample \npclock\n pos2.obj) returned a bad
status
58:NPError OSCALL NP_EXPORT
59:NP_GetEntryPoints(NPPlu
60:{
error log:
wpp386 ..\..\common\npos2.cpp
-i=d:\watcom\h;d:\watcom\h
-e25 -zq -otexan -d2 -bd -5r -bt=os2 -mf
..\..\common\npos2.cpp(34)
to symbol 'hmod'
..\..\common\npos2.cpp(34)
hmod' in 'unsigned long DLLInitTerm( unsigned long, int )'
defined in: ..\..\common\npos2.cpp(31)
..\..\common\npos2.cpp(34)
to symbol 'Flag'
..\..\common\npos2.cpp(34)
'unsigned long DLLInitTerm( unsigned long, int )' defined in:
..\..\common\npos2.cpp(31)
..\..\common\npos2.cpp(59)
probable cause: missing ';'
..\..\common\npos2.cpp(254
to symbol 'g_pluginFuncs'
..\..\common\npos2.cpp(254
* g_pluginFuncs' defined in: ..\..\common\npos2.cpp(48)
Error(E42): Last command making
(d:\watcom\netscape\sample
status
ASKER
NPOS2.CPP:
58:NPError OSCALL NP_EXPORT
59:NP_GetEntryPoints(NPPlu ginFuncs* pFuncs)
60:{
error log:
wpp386 ..\..\common\npos2.cpp
-i=d:\watcom\h;d:\watcom\h \os2;d:\wa tcom\netsc ape\includ e -w4
-e25 -zq -otexan -d2 -bd -5r -bt=os2 -mf
..\..\common\npos2.cpp(34) : Warning! W014: (col 1) no reference
to symbol 'hmod'
..\..\common\npos2.cpp(34) : Note! N392: (col 1) 'unsigned long
hmod' in 'unsigned long DLLInitTerm( unsigned long, int )'
defined in: ..\..\common\npos2.cpp(31) (col 27)
..\..\common\npos2.cpp(34) : Warning! W014: (col 1) no reference
to symbol 'Flag'
..\..\common\npos2.cpp(34) : Note! N392: (col 1) 'int Flag' in
'unsigned long DLLInitTerm( unsigned long, int )' defined in:
..\..\common\npos2.cpp(31) (col 37)
..\..\common\npos2.cpp(59) : Error! E006: (col 1) syntax error;
probable cause: missing ';'
..\..\common\npos2.cpp(254 ): Warning! W014: (col 1) no reference
to symbol 'g_pluginFuncs'
..\..\common\npos2.cpp(254 ): Note! N392: (col 1) '_NPPluginFuncs
* g_pluginFuncs' defined in: ..\..\common\npos2.cpp(48) (col 23)
Error(E42): Last command making
(d:\watcom\netscape\sample \npclock\n pos2.obj) returned a bad
status
58:NPError OSCALL NP_EXPORT
59:NP_GetEntryPoints(NPPlu
60:{
error log:
wpp386 ..\..\common\npos2.cpp
-i=d:\watcom\h;d:\watcom\h
-e25 -zq -otexan -d2 -bd -5r -bt=os2 -mf
..\..\common\npos2.cpp(34)
to symbol 'hmod'
..\..\common\npos2.cpp(34)
hmod' in 'unsigned long DLLInitTerm( unsigned long, int )'
defined in: ..\..\common\npos2.cpp(31)
..\..\common\npos2.cpp(34)
to symbol 'Flag'
..\..\common\npos2.cpp(34)
'unsigned long DLLInitTerm( unsigned long, int )' defined in:
..\..\common\npos2.cpp(31)
..\..\common\npos2.cpp(59)
probable cause: missing ';'
..\..\common\npos2.cpp(254
to symbol 'g_pluginFuncs'
..\..\common\npos2.cpp(254
* g_pluginFuncs' defined in: ..\..\common\npos2.cpp(48)
Error(E42): Last command making
(d:\watcom\netscape\sample
status
maybe Julien Pierre can help you out. He's written some plugins
for Netscape/2 though I'm not sure what compiler he is using.
try posting to c.o.o.programmer.misc, I don't have his email
or webpage handy.
good luck.
for Netscape/2 though I'm not sure what compiler he is using.
try posting to c.o.o.programmer.misc, I don't have his email
or webpage handy.
good luck.
It looks like your missing a header file. Have you tried
looking at the pre-processor output? What are the definitions
of NPError and "OSCALL NP_EXPORT"? These could be
compiler-specific flags.
looking at the pre-processor output? What are the definitions
of NPError and "OSCALL NP_EXPORT"? These could be
compiler-specific flags.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
having to compile it myself:
The source for NPOS2.CPP (line 59 and the surrounding lines only)
The command-line parameters for wpp386
The exact error output of the compiler