I'm in the process of learning to code C/C++, and trying to get the db saga codebase running so I can poke around and try to figure out what I can. I'm using cygwin to try and set it up but I've run into this problem when I try to 'make'.
If I could copy and paste directly from cygwin I would, but this is the basic jist of what I run into:
/home/username/dbsc/src/comm.c:1754: undefined reference to '_deflate' comm.o: In Function 'compressStart' : /home/username/dbsc/src/comm.c:5797: undefined reference to '_deflate_Init_' comm.o: In Function 'compressEnd' : /home/username/dbsc/src/comm.c:5832: undefined reference to '_deflate_Inti_' /home/username/dbsc/src/comm.c:5838: undefined reference to '_deflateEnd' collect2: ld returned 1 exit status make: *** [dbs] Error 1 make: Leaving directory 'home/username/dbsc/src' make[all] *** Error 2
I've already ran into a few problems compiling which I've managed to find solutions to, but this one has me stumped and I can't find anything to clear things up.
I'm running cygwin 1.5.25 on Windows XP, and I have all the devel packages and most of the libs. Like I said, I'm in the early learning phase of coding so if any instruction could be given in baby steps, it would be greatly appreciated.
-lz is on the L_FLAGS, and I've installed all the zlib packages that came in the setup file for cygwin. I've done the editing to the makefile that the readme instructs. Could there be a simple step that I'm missing? I know a less-than-functional amount about Linux, so all of my direction in cygwin is straight from forums and help files. I had problems with the zlib.h until I reinstalled it with the proper packages. Now, it compiles everything properly except for the comm.c file.
Is there a simple solution to this, or should I just wait till I'm a bit more experienced to tackle this kind of practice?…Or does everyone start out this way?
To copy/paste with cygwin just right click the title bar of the window and click properties, then in the options tab you'll see Edit Options, check both boxes and you'll be able to copy paste. Just highlight the text then right click to copy, to paste something into cygwin just copy it and then right click to paste it.