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]
Other format: [Raw text]

Re: reflection support?


On 11 Apr 2003, Marilen Corciovei wrote:
> Well, in the end I got my engine in a 4.6Mb
> exe file. What I did not realized is that since I used a lot reflection
> nothing seems to work except some error messages.

The hazards of reflection and static linking (as appears to be your
situation) is that needed classes may not be linked into the final
executable if they aren't directly referenced in code.

How are you linking your final executable?  If you are using archive (.a)
files, you can place -Wl,--whole-archive .... -Wl,--no-whole-archive
around libraries you need to link in their entirety.

The downside is that your executable may end up significantly larger.

Jeff


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