Solved

How to tell what architecture a lib file is compiled for

Posted on 2010-09-21
1
360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
ID: 33737313
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

617 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