Sign in to follow this  
Elwren

Open/Edit static libraries?

Recommended Posts

Hey, I have to port over a program from the IRIX operating system on a SGI machine to a RedHat linux/Intel machine. There is a certain library (libSample.a) that I need to open and look at the contents but I am not entirely sure that I can do that. I open it with VIM and there is a bunch of mess along with the code. Are library files meant to be opened by an editor and looked at/changed? Or is there a certain program that will allow me to do this? Any ideas would be great. Thanks in advance.

Share this post


Link to post
Share on other sites
No. It is a library archive of compiled objects, not text. However, if you want to see what objects are in it, you can use the 'ar' command. The '-t' option will print the archive's table of contents.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this