ZLib

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • -Mr. Coder-

    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


  • Moonlit

    #2
    Re: ZLib

    Hi,

    "-Mr. Coder-" <Deathrunner@we b.de> wrote in message
    news:3f9660f4$0 $18566$9b622d9e @news.freenet.d e...[color=blue]
    > 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.[/color]

    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.
    [color=blue]
    >
    > PLEASE HELP!
    >
    > Thanks
    >
    >[/color]


    Comment

    • -Mr. Coder-

      #3
      Re: ZLib

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

      Thanks


      Comment

      • Moonlit

        #4
        Re: ZLib

        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-" <Deathrunner@we b.de> wrote in message
        news:3f96d1c1$0 $18556$9b622d9e @news.freenet.d e...[color=blue]
        > OK...,
        > but I wanted to have a single file.
        > Is the a solution?
        >
        > Thanks
        >
        >[/color]


        Comment

        • Karl Heinz Buchegger

          #5
          Re: ZLib



          "-Mr. Coder-" wrote:[color=blue]
          >
          > OK...,
          > but I wanted to have a single file.
          > Is the a solution?
          >[/color]

          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
          kbuchegg@gascad .at

          Comment

          • Dumboo

            #6
            Re: ZLib

            wt compiler r u using ??
            u have to
            #include "zlib.h"

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

            hope this helps

            -Dumboo


            Comment

            Working...