Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3676350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:05:20+00:00 2026-05-19T03:05:20+00:00

gcc 4.5.1 Fedora 14 Linux I have this static library that was build from

  • 0
gcc 4.5.1
Fedora 14 Linux

I have this static library that was build from a previous programmer. However, he has left the company and we don’t have the source code. All we have is the header files *.h and the libnet.a static library.

When I am try and link this with our application. I get a incompatible linker error. I think the problem is that the static library has been built on a 32 bit machine. And I am trying to link using a 64 bit machine. I could compile my application using the cflag -m32. However, I just want to know if there is any command that will give me if the static library was built in either 32 or 64 bit mode?

Many thanks for any suggestions,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:05:20+00:00Added an answer on May 19, 2026 at 3:05 am

    An .a archive is just a collection of objects, so why not:

    ar x libnet.a
    file someobj.o
    

    That will give you an answer like:

    someobj.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible for gcc to link against a library that was created with
I have some piece of code that behaves differently under Mac OSX and Linux
$ yum list | grep gcc arm-gp2x-linux-gcc.i686 4.1.2-11.fc12 @fedora arm-gp2x-linux-gcc-c++.i686 4.1.2-11.fc12 @fedora gcc.i686 4.4.3-4.fc12
Here's the setup: My coworker has a Fedora x64_86 machine with a gcc 4.3.3
I am using make on linux. I downloaded the GCC source code from svn
gcc 4.4.3 c89 linux I am using log4c and have placed the inc and
I have a program, myprogram , which is linked with a static convenience library,
My gcc build toolchain produces a .map file. How do I display the memory
I'm using GCC to generate a dependency file, but my build rules put the
I’m using the gcc in MinGW that comes with Strawberry Perl, on Windows XP.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.