The "zlib.h" include file is not enough. You have to install a
corresponding library file as well.
/Niklas
I know that it is possible to install zlib on windows, but I'm no
expert on that. Anybody else who has experience with this?
> I have switched to use Code::blocks on linux. On Linux, I can
> run it from command line by compiling the Makefile, but am unable to
> run it in the debugger. (Same error - undefined reference to gzopen,
> gzread, gzclose etc show up, this even after installing zlib1g and
> zlib-devel packages)
What is it that doesn't work? Is it building MiniSat or running it
within the debugger?
If you are having trouble building, it may be the case that zlib is
installed in a directory that is not available to the compiler out of
the box. Find out where the library (libz.a) is and add that directory
to be searched during linking. In the makefile, add "-L<the-dir>" to
the LFLAGS-variable.
> I'm trying to use it in a debugger so that I can make a few
> modifications. Please let me know If there are any debuggers on linux/
> windows that work with minisat or in case there is a trick I'm missing
> w.r.to code:;blocks and minisat. I really appreciate your help.
Debugging with gdb works out of the box on Linux if you have installed
zlib. I expect that codeblocks uses gdb so it probably should work
too. I can not say more since I'm not familiar with codeblocks.
Cheers,
/Niklas