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]

Re: Does gcj pass -dy and -dn to linker?


Bill Bland wrote:

>It wasn't fltk causing the problem after all (btw, my gcj == 3.0.2).
>I was doing a Class.forName, which as you pointed out would cause problems
>when libgcj was linked statically.  I now have all libraries apart from
>libgcj linked statically and it works great.
>

Cool. You may be able to work around the Class.forName problem by 
putting declarations like the following in your Java code for each of 
the missing classes:

static final Class myclass = java.foo.Bar.class;

BTW Are you saying that GCJ 3.0.2 is still crashing for you rather than 
print an exception stack trace?

regards

Bryce.



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