[SOLVED] Dynamically linking pcre2

Need help with C, C++, perl, python, etc?

[SOLVED] Dynamically linking pcre2

Postby Zurg11 » 2019-09-23 08:37

[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

Postby Zurg11 » 2019-09-23 09:18

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).
Zurg11
 
Posts: 11
Joined: 2019-03-21 07:21


Return to Programming

Who is online

Users browsing this forum: techsavvy and 3 guests

fashionable