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
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel