[fpc-devel] [iconv][glibc] function "iconvctl" not found.
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Oct 24 11:22:43 CEST 2011
On 24 Oct 2011, at 04:00, Paul Ishenin wrote:
> I tried to handle the situation by using LoadLibrary, GetProcAddress
> and also failed on osx.
>
> The next line tries to load "iconv.dylib" while on osx the library
> name is "/usr/lib/libiconv.dylib":
>
> iconvlib:=LoadLibrary(libiconvname+'.'+SharedSuffix);
>
> Now I don't understand how it works with the static linking if
> "libiconvname" variable is "iconv"?
The compiler automatically adds the "lib" prefix and the sharedsuffix
in case of external declarations (and additionally, on Mac OS X the
library name in external declarations is not even used, only the
{$libklib xxx} directive matters -- but there the compiler performs
the same transformations of the library name).
Jonas
More information about the fpc-devel
mailing list