LinuxQuestions.org
Register a domain and help support LQ
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 03-11-2002, 07:57 PM   #1
tjones11
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, 11:11 AM   #2
lavelle
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, 01:51 PM   #3
isajera
Senior Member
 
Registered: Jun 2001
Location: San Antonio, TX
Distribution: distro? what's a distro?
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.
 
  


Reply


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 10:32 PM
ndiswrapper and version numbers kronchev Linux - General 2 03-21-2005 06:44 PM
numbers as file owners stabu Linux - General 3 04-27-2004 01:29 PM
Checking a file for numbers chrisk5527 Linux - General 1 09-12-2003 09:50 AM
Version numbers X11 Programming 2 04-09-2002 09:56 AM


All times are GMT -5. The time now is 03:56 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration