Solved

How to tell what architecture a lib file is compiled for

Posted on 2010-09-21
1
355 Views
Last Modified: 2013-12-27
I ran into this problem the other day. How does one tell what architecture a dll and/or lib file is compiled for? Say I have a lib (library) file that was compiled under x86 but I try to use it in a arm (CE) architecture. As my problem was the other day I had no way of knowing what architecture the lib filed was compiled for. I just kept getting link errors when I  used the functions from within the lib.

Is there some tool or something that one can tell what architecture a library is compiled for?

Thanks
0
Comment
Question by:atomicgs12
1 Comment
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
Comment Utility
try dumpbin: http://msdn.microsoft.com/en-us/library/c1h23y6c(VS.80).aspx

and use it like this:

dumpbin <path to lib> /headers

this utility parses lib file (ie COFF or PE format) and displays machine type at the very beginning of the dump:

http://stackoverflow.com/questions/3322630/determining-the-cpu-architecture-of-a-static-library-lib-on-windows
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
This article shows how to setup the internet connectivity on Windows Mobile Emulator.   I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now