LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2012, 09:22 AM   #1
littleplane
LQ Newbie
 
Registered: Mar 2012
Posts: 17

Rep: Reputation: Disabled
Obtain information about an installed library


Hi,

is there any way to obtain the path (and version) of a given library from C++? Let's say I need to get the actually installed version of libnss-dns. How can I get it?
 
Old 07-15-2012, 10:07 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
In principle, anything you can do from a shell, you can do in C++ using the system() function.
--- rod.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
More efficient way to obtain process-related information: ps or /proc ? Black_Light Programming 5 12-06-2009 03:22 PM
Where to obtain information for applications jstephens84 Programming 2 12-03-2008 07:59 AM
How to obtain debug information from a section!!!!! webquinty Linux - Newbie 2 10-30-2008 04:23 AM
how to obtain cd session information nIMBVS Linux - Newbie 1 10-26-2003 05:25 PM
Where to obtain the library for v6 of libjpeg? whepin Linux - General 1 03-31-2002 09:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration