Menu

#7 g++ compile error, when compiling java package

open
nobody
None
5
2006-05-17
2006-05-17
Anonymous
No

I am new user of jnipp. I'm building Simple project in
demo. jnipp generate 2 packages:java and sun. When I
do gmake, these error occured:

g++ -O0 -g -fPIC -c -Wall -I. -
I/home/chenls/tools/jnipp-linux-x86-0.4/include -
I/opt/disco/third-party/Linux-2.4c2.3-i686/java-
1.5.0_SUN/include -I/opt/disco/third-party/Linux-
2.4c2.3-i686/java-1.5.0_SUN/include/linux
java/io/WriterProxy.cpp -o java/io/WriterProxy_d.o
In file included from java/io/WriterProxy.cpp:2:
java/io/WriterProxy.h:101: `java::lang::AppendableProxy
java::io::WriterProxy::append(short unsigned int)'
and `
java::io::WriterProxy java::io::WriterProxy::append
(short unsigned int)'
cannot be overloaded
java/io/WriterProxy.h:105: `java::lang::AppendableProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy)' and `
java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy)' cannot be
overloaded
java/io/WriterProxy.h:109: `java::lang::AppendableProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy, int, int)' and
`java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy, int, int)'
cannot be overloaded
java/io/WriterProxy.cpp:155: prototype for
`java::lang::AppendableProxy
java::io::WriterProxy::append(short unsigned int)'
does not match any in
class `java::io::WriterProxy'
java/io/WriterProxy.cpp:115: candidates are:
java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy, int, int)
java/io/WriterProxy.cpp:107:
java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy)
java/io/WriterProxy.cpp:99:
java::io::WriterProxy
java::io::WriterProxy::append(short unsigned int)
java/io/WriterProxy.cpp:155:
`java::lang::AppendableProxy
java::io::WriterProxy::append(short unsigned int)'
and `
java::io::WriterProxy java::io::WriterProxy::append
(short unsigned int)'
cannot be overloaded
java/io/WriterProxy.cpp:163: prototype for
`java::lang::AppendableProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy)' does not match
any in class `java::io::WriterProxy'
java/io/WriterProxy.cpp:115: candidates are:
java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy, int, int)
java/io/WriterProxy.cpp:107:
java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy)
java/io/WriterProxy.cpp:99:
java::io::WriterProxy
java::io::WriterProxy::append(short unsigned int)
java/io/WriterProxy.cpp:163:
`java::lang::AppendableProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy)' and `
java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy)' cannot be
overloaded
java/io/WriterProxy.cpp:171: prototype for
`java::lang::AppendableProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy, int, int)' does
not match any in class `java::io::WriterProxy'
java/io/WriterProxy.cpp:115: candidates are:
java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy, int, int)
java/io/WriterProxy.cpp:107:
java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy)
java/io/WriterProxy.cpp:99:
java::io::WriterProxy
java::io::WriterProxy::append(short unsigned int)
java/io/WriterProxy.cpp:171:
`java::lang::AppendableProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy, int, int)' and
`java::io::WriterProxy
java::io::WriterProxy::append
(java::lang::CharSequenceProxy, int, int)'
cannot be overloaded
make_real: *** [java/io/WriterProxy_d.o] Error 1

I execute $> gcc dumpversion, and get my gcc version
as 3.2.3

would u pls support me for this?

thanks

Discussion


Log in to post a comment.