I'm porting a number of packages that currently use dlopen()/dlsym() on
various platforms.
I have followed the guidelines on the Fink site for building bundles that
can be dynamically loaded, and have spent several hours trying to work out
why dlsym() could not find a symbol in my bundle.
I eventually found the problem:
I try to load "func1" from a bundle with dlsym( handle, "func1" ) like
I do on other platforms, however on OSX, I have to use:
dlsym( handle, "_func1" )
Is there a compiler/linker switch that can suppress the leading underscore
on exported function names in a bundle ?
or
Should dlcompat's dlsym() really prepend the underscore ?
Cheers, Mark
---------------------------------------------------------------------------
* Mark Hessling, email@hidden http://www.lightlink.com/hessling/
* Author of THE; a Free XEDIT/KEDIT editor, Rexx/SQL, Rexx/Curses, Rexx/Wrapper
* Maintainer of PDCurses: Public Domain Curses and, Regina Rexx interpreter
* Use Rexx? join the Rexx Language Association: http://www.rexxla.org
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.