aspose file tools*
The moose likes Other Languages and the fly likes opening an .a extension? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "opening an .a extension?" Watch "opening an .a extension?" New topic
Author

opening an .a extension?

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
I am creating static libraries in c/c++ and the build output is an .a file.
I believe these are archive files which just contain the .o files ... but I want to few exactly what is in my .a file.

I am on windows XP ...
What do I need to few what is in these .a files.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

A disassembler.
Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
I know how to disassembly .o files my problem is I don't have any software that opens the .a file to get the .o files out of them.
Winzip doesn't work.
I am on windows xp and the .a file was created thru netbeans static library project using MinGW.

So does anybody know what software allows me to view/extract the contains of a .a file in windows

Thanks
Sorry for the confusion on the question
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

WinZip?! It's not an archive--it's a library file.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11424
    
  85

Sam Doder wrote:I am creating static libraries ... but I want to few exactly what is in my .a file.

You are creating the files and you want to know what is in them? I must be missing something here, because to me it would appear that the file would contain whatever you put it in.

Nevertheless, have you looked at the ar command?

Since you are working under Windows, you may need the compiler/linker/archiver tools that were used to create the archive. If it was created using the Microsoft C++ development tools, you may need those specific tools. If it was created using Cygwin, then you may need those tools. And if it was created on a Linux machine you are probably out of luck - you would probably need to look at the file in Linux.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Or objdump, or...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: opening an .a extension?