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

  • Home
  • SEARCH
  • 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 6712597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:16:42+00:00 2026-05-26T08:16:42+00:00

This question is surely answered here somewhere, but I couldn’t find it. I’ve been

  • 0

This question is surely answered here somewhere, but I couldn’t find it. I’ve been writing Java for over a decade now and my C experience was on Unix, so I’m kinda at square one here. In my Unix experience, someone else wrote the makefile and it just worked.

I have downloaded the C source code for libtar-1.2.11 from feep and ran make on it from inside of cygwin. This created a .a file and a .exe file. The EXE file appears to essentially be tar to run on Windows, but what I wanted was for the libraries to read and process the file in my own code.

If I remember correctly, those should be in the .a file (archive??) and this needs to be linked into a library that I can use from my C++ program. So I’m looking for a way to do that.

I am writing a library that will use a .tgz file and so I want to use this library. I think I’d like to turn libtar into a DLL as well as create a DLL myself for use in other languages.

So, how do I turn my .a file into something usable by other apps, and how do I access it from inside my code?

  • 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-26T08:16:42+00:00Added an answer on May 26, 2026 at 8:16 am

    The generated libmylib.a is actually an archive of all *.o for libtar-1.2.11.
    you can verify this by doing nm libmylib.a, it will print all the *.o files.
    Write your code, and link:

    gcc -o my_application my_application.o -lmylib
    

    You generated this with cygwin, you can’t generate a dll out of that as far as i know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

surely this question has beed debated thousand of time, but I do not find
First, I did look at this question , but its over a year old.
This is surely a basic question, but I'm new enough to MVC (and ASP.NET)
Apologies for this seemingly minor question, but I can't seem to find the answer
This is surely a stupid question, but I'm stumped. I've now read Odersky's book,
This question comes on the heels of the question asked here . The email
(This question is over 6 years old and probably no longer has any relevance.)
Lately I've asked this question. But the answer doesn't suit my demands, and I
Inspired by the comments on this question , I'm pretty sure that Java String
This question might be theoretical but i think some of the cases it makes

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.