This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Link errors


Hi,

I must be doing something wrong here, can someone tell me what ?

I'm running gcj -v :
Configured with: ./configure --prefix=/opt/contrib/linux/ 
--enable-threads --enable-shared
Thread model: posix
gcc version 3.1 20011004 (experimental)

and ld -v :  GNU ld version 2.10.91 (with BFD 2.10.91.0.2)

The compile rule is plain : gcj -c -o some.lo some.[class|java]
and link along the lines of:  gcj --main=myclass (2000 files).lo

I get link errors by the ton, about 10000 of this style:

test/TestModule.lo: In function 
`test::TestModule::startup(org::w3c::dom::Node*)':
/tmp/platform/test/TestModule.java:34: multiple definition of 
`test::TestModule::startup(org::w3c::dom::Node*)'
./test/TestModule.lo:/tmp/platform/test/TestModule.java:34: first 
defined here

And another 7700 of this kind:

/tmp/platform/org/webmacro/directive/AlternateDirective.java:58: 
undefined reference to 
'org::webmacro::directive::Directive__U24_NotVariableBuildException::class$'
/tmp/platform/org/webmacro/directive/AlternateDirective.java:58: 
undefined reference to 
`org::webmacro::directive::Directive__U24_NotVariableBuildException::Directive__U24_NotVariableBuildException(java::lang::String*, 
java::lang::Exception*)'


Thanks
   Torsten


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]