Re: [jnc-users] NullPointerExceptionatjava.net.URLClassLoader.getPermissions
Status: Beta
Brought to you by:
soapy
From: Marco T. <ma...@mt...> - 2009-11-28 11:59:02
|
Dear Keith It would of course be better to resolve the multiple definitions (shouldn't be too hard, just remove them from the jaxen jar), but you can also do it with the gcc flag as you have tried. What you're looking for is -Wl,--allow-multiple-definition It's a linker option, so "-Wl" is needed so that gcc/gcj knows it has to pass the "--allow-multiple-definition" to the linker. Hope that helps Marco Keith Boynton schrieb: > Hi again Marco, > > The journey continues.... > > Further down the road and I discover I need to plug Jaxen in and I come > across the dreaded multiple definition errors. Other than pulling them > out of jaxen.jar I read this.... > > "I'm pretty sure the solution was to use -fenable-multiple-definitions or > so... Please check the mailing list archive... > Marco" > > On further investigation, I cannot see that > "enable-multiple-definitions" is correct. However, GCJ does have a flag > "--allow-multiple-definition". > > Problem is adding "--allow-multiple-definition" as a custom GCJ flag > gives the following error: > cc1.exe: error: unrecognized command line option > "-fallow-multiple-definition" > > What should I be adding in the Custom GCJ flags section to set this flag? > > Keith |