libgcj/2695: static linking!!
anast@solidum.com
anast@solidum.com
Mon Apr 30 06:36:00 GMT 2001
>Number: 2695
>Category: libgcj
>Synopsis: static linking!!
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: spammer
>Arrival-Date: Mon Apr 30 06:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: anast@solidum.com
>Release: unknown-1.0
>Organization:
>Environment:
linux
>Description:
hi,
it seems that some thing goes wrong with the
class: java.util.Date when i try to make a static linking
i got an error message at the runtime :
java.util.MissingResourceException: can't load bundle.
which is not the case for other classes such as ArrayList
coming from the same package.
the problem did not accrue when i linked dynamically,
unfortunately, i have to do a static link.
here is the example with the makefile used:
test.java:
----------
public class test{
public static void main(String args[]){
java.util.Date d = new java.util.Date();
try{
System.out.println("the date is " + d.toString());
}
catch (Exception e){
System.out.println("caught.....");
System.out.println(e.toString());
}
java.util.ArrayList array = new java.util.ArrayList();
System.out.println("the array is : " + array.toString());
}
}
makeifle:
---------
gcj = /tools/cross/linux/gcc-java/bin/gcj
g++ = /tools/cross/linux/gcc-java/bin/g++
gcjh = /tools/cross/linux/gcc-java/bin/gcjh
%.o : %.java
$(gcj) -c -g -fno-rtti $<
test.exe : test.o
/tools/cross/linux/gcc-java/bin/gcj -o test.exe test.o \
-static --main=test
jcup :
$(gcj) -c -g -fno-rtti test.java
build:
make jcup;
make test.exe
clean :
rm test.o test.exe
thanks.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list