Mailinglist Archive: opensuse (946 mails)

< Previous Next >
Re: [opensuse] C++ Question
On 2017-09-24 00:48, Paul Groves wrote:
For belt and braces, is there a way to check for installed packages in
C++ too so I can output an error message if a required package is not

Yes, of course.

You can try to see if the program exists - so you test for the program,
not for the package. You can even try to run it asking for its version
string, and decide if it is the correct one when it responds.

Cheers / Saludos,

Carlos E. R.

(from 42.2 x86_64 "Malachite" (Minas Tirith))

< Previous Next >