Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2005
    Location
    Ontario, Canada
    Posts
    1,750

    Question linking zlib help needed

    A while ago, I posted a question about compressing data: http://www.3dbuzz.com/vbforum/showth...rary&p=1451999

    I've decided to look into zlib to see if I can get it to work. I downloaded the zlib compiled DLL, version 1.2.5 from http://zlib.net/

    I created a new Visual Studio 2008 project, added the zconf.h and zlib.h files to my project and linked the zdll.lib file.

    When I build my project in Debug I get one warning:
    zdll.lib(d000003.o) : warning LNK4078: multiple '.text' sections found with different attributes (E0300020)

    The program "appears" to run okay and it can compress and uncompress data.

    If I build my project in Release I get a slighly different warning:
    msvcprt.lib(MSVCP90.dll) : warning LNK4078: multiple '.text' sections found with different attributes (60201020)

    The program crashes when I run it.

    It seems to me that the problem is one in the same which I can't figure out how to fix.

    I also tried using Visual C++ 2010 Express but I get the same warning and same crashing problem.
    Can anyone help me?
    C++, 3D OpenGL and Game Programming video tutorials:
    www.MarekKnows.com
    Play my free games: Ghost Toast, Zing, Jewel Thief

  2. #2
    Join Date
    Jun 2003
    Location
    Trier, Germany
    Posts
    1,350
    sounds like the linker does not like your binaries.

    compiling zlib manually should resolve the problem.

  3. #3
    Join Date
    Mar 2005
    Location
    Ontario, Canada
    Posts
    1,750
    I downloaded the zlib source code to recompile the binaries. I read the help file in the source code to figure out how to recompile zlib and it says "To build zlib using the Microsoft Visual C++ environment, use the appropriate project from the projects/ directory."

    Unfortunately, there is no "projects/" directory in the included source so I can't compile the source!
    C++, 3D OpenGL and Game Programming video tutorials:
    www.MarekKnows.com
    Play my free games: Ghost Toast, Zing, Jewel Thief

  4. #4
    Join Date
    Jun 2003
    Location
    Trier, Germany
    Posts
    1,350
    the readme is slightly outdated. look for contrib/vstudio instead.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •