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 9222163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:45:50+00:00 2026-06-18T03:45:50+00:00

I am learning C++, and I decided to make a little program that zip/unzip

  • 0

I am learning C++, and I decided to make a little program that zip/unzip files to train me.
I downloaded libzip and zlib and linked them to my compiler (MinGW with Code::Blocks on Windows). So I tried to open my zip file with zip_open() and got an error :

undefined reference to _imp__zip_open

Here is the code:

#include <zip.h>
#include <zlib.h>

int main()
{
    int error(0);
    zip *foo = zip_open("foo.zip", 0, &error);
    return 0;
}

I don’t know where this is coming from and I would really like some help, because I don’t find anything on Google (surely cause the problem is simple).

Thanks in advance!

  • 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-06-18T03:45:52+00:00Added an answer on June 18, 2026 at 3:45 am

    It looks like you haven’t linked to libzip. Make sure you are infact linking to it, and that the path to the lib is in your link path.

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

Sidebar

Related Questions

So I am currently learning C++ and decided to make a program that tests
I am learning mysql join queries. To pratice, I decided to make tables for
So for the summer I decided that I may as well start learning algorithms
I've recently started learning C#. I just learned about properties and decided to make
I am learning HTML, Javascript, etc., and decided to make a small web app
So I am learning how to use streams to make files of my own
I'm learning some swing and awt programming in Java so I decided to make
I recently started learning Objective-C. I decided to make a class called Student with
I'm learning HTML/CSS/JS/jQuery, and so decided to make a calculator to see if I
i have a small problem. I'm learning Javascript and I decided to make a

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.