This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Link errors
- To: java at gcc dot gnu dot org
- Subject: Link errors
- From: Torsten Rüger <torsten dot rueger at firsthop dot com>
- Date: Tue, 09 Oct 2001 10:47:35 +0300
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