For demo purposes, here is my one line program test.c :
This is my makefile :
INC = -I/usr/include/dbus-1.0 \ -I/usr/lib/dbus-1.0/include test : test.c gcc $(INC) -c -o test.o test.c
I have the dbus devel packages installed on both my Mer Linux (via zypper) and Cygwin (via the setup program). dbus/dbus.h are visible on both systems (ls /usr/include/dbus-1.0 shows the folder dbus containing the file dbus.h among many). This compiles successfully on Mer Linux, but when compiled on Cygwin (2.831 64-Bit running on Win 7), I get the follow error:
test.c:1:23: fatal error: dbus/dbus.h: No such file or directory #include <dbus/dbus.h> ^ compilation terminated. makefile:5: recipe for target 'test' failed make: *** [test] Error 1
I've tried every simple variant I can think of to make Cygwin work - space between -I and path, extra slash on end of path, different orders of the gcc arguments. Nothing simple seems to remedy this problem which shouldn't exist.