Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 03-11-2002, 06:57 PM   #1
LQ Newbie
Registered: Mar 2002
Posts: 1

Rep: Reputation: 0
file version numbers

I am new to programming in linux but come from a visual c++ MS background. In windows it is very easy to get the version numbers of dll and other executables through system calls. I need to be able to do the same thing in linux for all the system libraries. Does anyone know of a way to get at these programatically?
Old 03-15-2002, 10:11 AM   #2
LQ Newbie
Registered: Mar 2001
Location: Dallas TX
Distribution: RH7.2 RH7.0
Posts: 12

Rep: Reputation: 0
the what command

In the old days there was a what command, and just a few minutes ago I noticed that my RH7.2 dist does not have this command. A few years ago I noticed that most programmers where not aware of it. If your machine has a what command just run it over your favorite .o .a .so* or executable and you should see version numbers of the input files from the RCS tags.

I'm thinking people don't do this anymore. I guess it is eaiser to 'cover your tracks' if people don't do this.

One quick note, the use for the what command was fairly specific and you may be trying to do something the Microsoft way and need to look at how you do things in the Unix/Linux way. For example shared libraries have major and minor numbers so you don't run into the .dll hell of two apps needing incompatable versions of the same library. Package file in a RedHat are managed by rpm.
Old 03-15-2002, 12:51 PM   #3
Senior Member
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
i'm not really sure that's the issue - i think the difference between how version/compatibilty issues are handled in windows versus *nix is the problem... for an elf program, version requirements are handled almost exclusively by the configure script in pre-compile. i'm pretty sure that any runtime checks are package-specific.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] file locations and version numbers politik Linux - Newbie 2 08-21-2005 09:32 PM
ndiswrapper and version numbers kronchev Linux - General 2 03-21-2005 05:44 PM
numbers as file owners stabu Linux - General 3 04-27-2004 12:29 PM
Checking a file for numbers chrisk5527 Linux - General 1 09-12-2003 08:50 AM
Version numbers X11 Programming 2 04-09-2002 08:56 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:48 PM.

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