Multiple Definitions of

Philip T. Gonia phil.gonia@verizon.net
Sun Apr 6 10:17:00 GMT 2003


Hi,

I'm new to GCJ and I find I am having a problem working with inner
class compiles with GCJ.

Below I provide a very small output of the current output of a build I
am doing from a make file.
The problem starts at the request to compile an inner class. It falls
apart from there.

What is wrong and what is the fix if any.

++++++++++++++
gcj -c  com/rbnb/sapi/ChannelMap$ByteOrderEnum.class -o
com/rbnb/sapi/ChannelMap$ByteOrderEnum.o
gcj -shared -o sapi.so com/rbnb/sapi/Source.o
com/rbnb/sapi/SourceBeanInfo.o com/rbnb/sapi/Sink.o
com/rbnb/sapi/SinkBeanInfo.o com/rbnb/sapi/SAPIExc
eption.o com/rbnb/sapi/PlugIn.o com/rbnb/sapi/PlugInChannelMap.o
com/rbnb/sapi/PlugInChannelMapBeanInfo.o com/rbnb/sapi/PlugInBeanInfo.o
com/rbnb/sa
pi/a.o com/rbnb/sapi/b.o com/rbnb/sapi/c.o com/rbnb/sapi/d.o
com/rbnb/sapi/e.o com/rbnb/sapi/f.o com/rbnb/sapi/g.o
com/rbnb/sapi/ChannelMap$ByteOrde
rEnum.o com/rbnb/sapi/ChannelMap.o com/rbnb/sapi/ChannelMapBeanInfo.o
com/rbnb/sapi/Client.o
com/rbnb/sapi/ChannelMap.o: In function
`com::rbnb::sapi::ChannelMap::__U3c_clinit__U3e_()':
com/rbnb/sapi/ChannelMap.o(.text+0x0): multiple definition of
`com::rbnb::sapi::ChannelMap::__U3c_clinit__U3e_()'
com/rbnb/sapi/ChannelMap.o(.text+0x0): first defined here
com/rbnb/sapi/ChannelMap.o(.bss+0x3c): multiple definition of
`com::rbnb::sapi::ChannelMap::LSB'
com/rbnb/sapi/ChannelMap.o(.bss+0x3c): first defined here
com/rbnb/sapi/ChannelMap.o(.bss+0x38): multiple definition of
`com::rbnb::sapi::ChannelMap::MSB'
com/rbnb/sapi/ChannelMap.o(.bss+0x38): first defined here
+++++++++++++++++

Philip Gonia
------------------
phil.gonia@verizon.com
------------------
Arthur C. Clarke, Author of 2001: A Space Odyssey.

"The only way to discover the limits of the possible is to go beyond
them into the impossible."
------------------



More information about the Java mailing list