[CMake] Shared libraries cannot be found after deploying a CPack package

Eric Noulard eric.noulard at gmail.com
Thu Jul 16 09:26:16 EDT 2009


2009/7/16 Michael Wild <themiwi at gmail.com>:
>>
>> May be there is some equivalent on Windows platform too
>> http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx
>> [just pointing the link, I'm really no windows expert and ....
>> don't want to become one :-) ]
>
> Seriously, that platform is just plain broken if you ask me.
> __declspec(dllimport), __declspec(dllexport)?! What were they thinking?

Visibility control in shared libs may not be considered as evil,
GCC even supports that feature:

http://gcc.gnu.org/wiki/Visibility

in particular you may read "2.2 Export Control" in
http://people.redhat.com/drepper/dsohowto.pdf


> And
> DLL-exported C++ template instantiations with member templates simply don't
> work. Sometimes I marvel at why so many people go trough the pains of
> writing software for such a broken system...

This is another story :-)


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list