[Development] libQt6Core.so links against both libpcre.so.3 and libpcre2-16.so.0

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Mar 8 14:20:02 CET 2023


On 08/03/2023 11:16, Marc Mutz via Development wrote:
> 
> I assume they live in different "namespaces" and so it's ok to link both?

Well, they're C libraries, so no namespaces, but the functions have 
different names. For each XXX function in the library:

* PCRE1 uses pcre_XXX for the 8 bit version, pcre16_XXX for the 16 bit 
version, pcre32_XXX for the 32 bit version;

* PCRE2 uses pcre2_XXX_YY with Y being 8, 16, 32 for the various versions.

So no harm done at mixing and matching.


(Side note, PCRE1 has reached EOL for quite some time now.)


Thanks,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230308/6856270e/attachment.bin>


More information about the Development mailing list