Thread: Adding libzip to project in VisualStudio2017

  1. #1
    Registered User
    Join Date
    Jun 2019

    Adding libzip to project in VisualStudio2017

    I have a problem with libzip archivum in VisualStudio 2017. Adding libzip using NuGet package managing.
    #include <stdio.h>
    #include <zip.h>
    #include <stdlib.h>
    int main()
        zip_open("C:/Users/", 0, 0);
    Compiling this code give me error
    "Unresolved external symbol _imp_zip_open". Can you help me please.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    I thought the whole point of the likes of nuget was to automate all of this.

    Or maybe it's biased towards .net, so anything C++ is an afterthought.

    Anyway, what you need to do is navigate through the project settings to add the name of the library you want to link with.
    Adding libzip to project in VisualStudio2017-vs-additional-libs-png

    You might also need to alter the VC Directories to also specify an additional linker path to where the library is located.

    It would seem that it's already updated the include search path, since it found the .h file just fine.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 09-04-2013, 01:24 PM
  2. Replies: 4
    Last Post: 08-02-2013, 06:45 PM
  3. [VS2010] adding *.dll files to a project
    By kulfon in forum C++ Programming
    Replies: 3
    Last Post: 06-27-2011, 07:08 AM
  4. MSLU? Need help adding this in to project.
    By MidnightlyCoder in forum C++ Programming
    Replies: 1
    Last Post: 03-13-2006, 01:07 PM
  5. help, linker errors when adding library file to project
    By ngcfan525 in forum C++ Programming
    Replies: 1
    Last Post: 03-09-2003, 02:27 PM

Tags for this Thread