Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
problem with ZLIB
Ti64CLi++:
Sorry for this necro post
--- Quote from: thomas on February 24, 2006, 10:13:44 pm ---I don't know what zlibwapi.lib is, but it does not look like the correct thing.
An easy way to use zlib with MinGW that works (I know for sure because I've done it just 2 days ago) is this:
1. Download and unpack the zlib-1.23 source zipfile
2. Open a cmd prompt and cd to the top level folder
3. type mingw32-make -f win32\Makefile.gcc
4. Wait until it is done (about 6-8 seconds), then copy the libraries (most importantly the .a and .dll) to your lib folder
(so much for setup, now for the fun stuff)
5. Make a project, write your program etc.
6. Be sure that your lib folder is in the linker's search path (normally that is the case)
7. Add z to the "Link libraries" field in project options (or alternatively, specify the absolute path)
--- End quote ---
I tried your method, but she fails.
When I run mingw32-make -f win32\Makefile.gcc, cmd tells me :
--- Quote ---gcc: error: CreateProcess: No such file or directory
win32\Makefile.gcc:85: recipe for target 'adler32.o' failed
mingw32-make: *** [adler32.o] Error 1
--- End quote ---
I don't know why.
Thanks for any help :)
BlueHazzard:
This has nothing to do with codeblocks... you simply fail to compile a 3th party library. You can ask at the support forum for the compiler, or better for the library... But here you probably won't find help...
Navigation
[0] Message Index
[*] Previous page
Go to full version