473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ZLib

Hi,

I've got a problem with including ZLib in to my application.

I've downloaded the newest Version from http://gzip.org and unzipped it.

->I do not know what file I've got to include.

PLEASE HELP!

Thanks
Jul 19 '05 #1
5 2480
Hi,

"-Mr. Coder-" <De*********@web.de> wrote in message
news:3f***********************@news.freenet.de...
Hi,

I've got a problem with including ZLib in to my application.

I've downloaded the newest Version from http://gzip.org and unzipped it.

->I do not know what file I've got to include.
You have to include zlib.h

As far as I remember it creates a library file (at least for the msvc
project, not to sure about the unix build).

I used to statically link that to my MSVC applications (resulting in one
executable instead of a executable and DLL).
Regards, Ron AF Greve.

PLEASE HELP!

Thanks

Jul 19 '05 #2
OK...,
but I wanted to have a single file.
Is the a solution?

Thanks
Jul 19 '05 #3
Hi,

If you link statically (at least under MSVC) that creates a single
executable (you still have to create a lib first though). Must be possible
with g++ under *nix too, but I haven't tried the latter.

I could look up my MSVC settings if you use that.

Regards, Ron AF Greve.
"-Mr. Coder-" <De*********@web.de> wrote in message
news:3f***********************@news.freenet.de...
OK...,
but I wanted to have a single file.
Is the a solution?

Thanks

Jul 19 '05 #4


"-Mr. Coder-" wrote:

OK...,
but I wanted to have a single file.
Is the a solution?


First of all you need to look at what you downloaded.
If there is already a library, you can use that prebuilt
library.
IN any other case you first need to build that library. If you
downlaoded the right zip-file it may have come with a project
you just open and let it build the library.

You then switch back to your original program and use that library
just as you would use any other library (add it to your project, include
the header file where you need to).

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 19 '05 #5
wt compiler r u using ??
u have to
#include "zlib.h"

and include the "zlib.lib" in ur project file

hope this helps

-Dumboo
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alan Toppen | last post by:
I was unable to use the ZipFile class in the zipfile module in Python2.4. I got an error that zlib could not be found. Comparing my Python 2.2 installation I noticed Python 2.4 was missing a...
0
by: Tony | last post by:
Hello, Any assistance would be appreciated: As the subject suggests I am trying to gunzip files using the Compress::Zlib module. The following is basically the code that I am working with: ...
6
by: Laszlo Zsolt Nagy | last post by:
Sorry, I realized that the import zlib was not executed from my (working) service. So here is the question: why can't I use zlib from a win32 service? Is there any way to make it working? ...
1
by: Andreas Lobinger | last post by:
Aloha, is a pure _python_ implementation of the zlib available? I have broken zlib streams and need to patch the deocder to get them back. Wishing a happy day LOBI
1
by: Dennis Powell | last post by:
Does anyone have a successful implementaion of the zlib.dll in VB. Net they can show me. I'm writting a class encaplsulating zlib functionality and I keep getting a System.NullReferenceException...
4
by: shamzz | last post by:
Hi, I've compiled (configure/make/make install) Python 2.4.4 from source on Suse Linux Enterprise Server 9 (x64). I need Python to be compiled with Zlib so that I can compile and use Zope. ...
3
by: stuntgoat | last post by:
import zlib works in Python 2.4 (debian etch AMD64 - default python version for that distro) I built python 2.5 from source; zlib is not importable. I am trying to compile MySQLdb. any...
1
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post by:
I can't seem to get the zlib module to build on an RHEL box. I did the following: 1) Download zlib 1.2.3 2) configure;make;make install 3) Download python 2.5.2 4) configure;make;make install...
4
by: MZ | last post by:
Hello! I`ve tried to instal zlib library to use zip functions to pack files into zip archive. I don`t know how I have to configure zlib to make it work. I have built up php.ini file and...
2
by: rajevar | last post by:
hi, i have seen various post related to this topic but i couldnt resolve my issue yet. Im using python version 2.5 on Linux environment this is the error im getting if i try to import zlib ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.