This is a discussion on exporting symbols from JNI shared library within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi We have a jni shared library which we built using "-bnoentry -bnosymbolic -bnoautoexp -bM:SRE" options (we cannot use ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi We have a jni shared library which we built using "-bnoentry -bnosymbolic -bnoautoexp -bM:SRE" options (we cannot use -G option since that makes libraries do a run time linking which is not allowed in java). Now it seems that no symbols are being exported from this shared library. We tried checking it and by specifying -bE:SymbolsToExport.exp one can export symbols but is there any automatic way to export all the symbols of this library only? (we tried using -bexpall but that tries to export symbols from other libraries also and that is not working) Thanks Naresh |
| ||||
| Naresh Agarwal wrote: > We have a jni shared library which we built using "-bnoentry > -bnosymbolic -bnoautoexp -bM:SRE" options (we cannot use -G option > since that makes libraries do a run time linking which is not allowed > in java). Now it seems that no symbols are being exported from this > shared library. Try -bexpfull, or -bexpall, or use xlC -qmkshrobj. I would strongly encourage you to _not_ use -bnoautoexp and -bnosymbolic. Stick to the defaults. -bM:SRE and -bnoentry are recommended. -- Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE __________________________________________________ ______________________ |