Is this a name mangling problem?
Martin Kahlert
martin.kahlert@infineon.com
Wed Jan 31 08:24:00 GMT 2001
Hi,
i use to compile a very large collection of class files into an
executable. This worked well with previous snapshots.
Now with gcc-20010129 i get ~3544 errors of the kind
lib/libtmc_LINUX_GCC.a(VCG_Node.o): \
In function `VHDL::VG::VCG::VCG_Node::write(java::io::PrintWriter*) ':
/home/kahlert/LOCAL/TMC_JAVA/VHDL/VG/VCG/VCG_Node.class(.text+0x38c): \
undefined reference to `VHDL::VG::VCG::VCG_Node::class$VHDL$VG$VCG$VCGA_Title '
/home/kahlert/LOCAL/TMC_JAVA/VHDL/VG/VCG/VCG_Node.class(.text+0x3a1): \
undefined reference to `VHDL::VG::VCG::VCG_Node::class$VHDL$VG$VCG$VCGA_Title '
/home/kahlert/LOCAL/TMC_JAVA/VHDL/VG/VCG/VCG_Node.class(.text+0x3d4): \
undefined reference to `VHDL::VG::VCG::VCG_Node::class$VHDL$VG$VCG$VCGA_Title '
This 'VHDL::VG::VCG::VCG_Node::class$VHDL$VG$VCG$VCGA_Title' looks like a
doubled name to me.
I tried with a very small app and 'forgot' a class file and got
hello.o: In function `hello::main(JArray<java::lang::String*>*) ':
/home/kahlert/LOCAL/Hello/hello.java:5: undefined reference to `holla::class$ '
/home/kahlert/LOCAL/Hello/hello.java:5: undefined reference to `holla::holla()'
(No holla::class$holla or anything like that.)
Did i make a silly mistake or is this a (perhaps known) bug?
Thanks,
Martin.
PS: My small apps continue to work wonderfully.
--
The early bird gets the worm. If you want something else for
breakfast, get up later.
More information about the Java
mailing list