[PD-dev] how to load shared code for libraries

IOhannes m zmoelnig zmoelnig at iem.at
Tue Sep 27 08:51:48 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2011-09-26 23:29, Hans-Christoph Steiner wrote:
> 
> My guess is that it'll be something like this:
> 
> #ifdef _WIN32
>     PATH
> #elif defined(__APPLE__)
>     DYLD_LIBRARY_PATH
> #else
>     LD_LIBRARY_PATH
> #endif

i would go for something with less logic involved:
push(PATH); push(LD_LIBRARY_PATH); push(DYLD_LIBRARY_PATH);
...
pop(PATH); pop(LD_LIBRARY_PATH); pop(DYLD_LIBRARY_PATH);


the only drawback i see right now is, that is doesn't work.
at least on linux, any modification to LD_LIBRARY_PATH is nicely ignored
and only the value taken when starting the application is taken into
account :-(

maybe there is a soltuin for this problem, but i haven't come across one
yet.

fgmasdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6BcoAACgkQkX2Xpv6ydvTe9wCeKw+0k+S61dSBLfwYvnZLmKVH
m+oAmwRTnW6ewoR5FUKt97R0wT3Vu8m8
=Tich
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20110927/b8057e9b/attachment.bin>


More information about the Pd-dev mailing list