[fpc-devel] [iconv][glibc] function "iconvctl" not found.

Paul Ishenin ip at kmiac.ru
Mon Oct 24 04:00:40 CEST 2011


23.10.2011 20:01, Paul Ishenin пишет:
> 23.10.11 19:49, 4iter пишет:
>> Hi!
>> Fatal: Compilation aborted
>> ..............................................
>> Maybe fixit it with #ifdef ?
>
> How to define this ifdef?
>
> Maybe it could be fixed either by dynamic loading or weakexternal
> directive?

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"?

Best regards,
Paul Ishenin.




More information about the fpc-devel mailing list