Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Dynamically linking pcre2

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Zurg11
Posts: 11
Joined: 2019-03-21 07:21

[SOLVED] Dynamically linking pcre2

#1 Post by Zurg11 »

[I've installed libpcre2-dev. I can't find .so file(s) in /usr/lib/. How to use this library for linking with GCC? For example, when I used libpcre3-dev I could just pass

Code: Select all

-lpcre
to GCC, but I can't find out what I need to pass for PCRE2.
Last edited by Zurg11 on 2019-09-23 09:18, edited 1 time in total.

Zurg11
Posts: 11
Joined: 2019-03-21 07:21

Re: Dynamically linking pcre2

#2 Post by Zurg11 »

Nevermind, I figured it out.

It should be

Code: Select all

-lpcre2-8
-lpcre2-16
-lpcre2-32
depending on code unit size you want (see man 3 pcre2api).

Post Reply