Whenever I make in cygwin and it gets to the part about
linking i get all sorts of errors and it errors out. I
have Xlib.h and i've even tried modifying the Makefile
to say: INCLUDES = -I/usr/X11R6/include/X11
-I/usr/X11R6/include/X11/extensions -I./src
-I/usr/include/X11
(as my Xlib.h file is in /usr/include/X11)
For example:
make
Linking obpager
./objs/src/OBPager.o(.text+0xd84): In function
`_ZN7OBPager16connectToXServerEPc':
/home/Zach/src/obpager-1.8/src/OBPager.cc:177:
undefined reference to `_XSetErrorHandler'
./objs/src/OBPager.o(.text+0xdaa):/home/Zach/src/obpager-1.8/src/OBPager.cc:185:
undefined reference to `_XOpenDisplay'
./objs/src/OBPager.o(.text+0x1125):/home/Zach/src/obpager-1.8/src/OBPager.cc:201:
undefined reference to `_XSynchronize'
./objs/src/OBPager.o(.text+0x119f):/home/Zach/src/obpager-1.8/src/OBPager.cc:215:
undefined reference to `_XInternAtom'
Logged In: YES
user_id=653631
The includes basically just affect compilation, not linking.
For linking, the -L options (include paths) and -l options
(which libraries to link against) are what matters. Perhaps
somehow the -lX11 was left out? Or maybe the build doesn't
know where your libX11 is?