libzip: libzip-discuss: Windows compile

Thread

Thread Index

Message

From: Donn Mielcarek <globalvisualizationprocess%gmail.com@localhost>
To: libzip-discuss%nih.at@localhost
Subject: Windows compile
Date: Fri, 23 Jan 2009 09:34:12 -0500

Is libzip compiling under Windows?

I'm using Visual Studio Version 8.

First problem:

  The line in the cmake file
     CHECK_SYMBOL_EXISTS(ZEXPORT zlib.h HAVE_ZEXPORT)
  says that my zlib version is too old.  I have version 1.2.3, so
   I'm not sure why this test fails. I commented out these lines.

Second problem:

  In zip.h, the return type ssize_t is undefined.  I don't know if
  there's a Windows include file that defines this, so I just
  changed it to an "int."

Third problem:

  Compiling zip_add.c, I get
   "zip_add.c(42) : error C2491: 'zip_add' : definition of dll
    import function not allowed"

   There's nothing worse then struggling with Windows dll
   define nonsense.  I can't understand why this error comes
   up and I don't know where to go from here.


Any help appreciated.






 

Made by MHonArc.