Menu

#585 building from cygwin: compat_win32.cpp:10:28: fatal error: windows_compat.h: No such file or directory

Future
closed
nobody
all
5
2016-09-23
2014-06-18
xvilka
No

Compiling uncrustify from cygwin-64bit:

...
CXX uncrustify-unc_text.o
CXX uncrustify-compat_posix.o
CXX uncrustify-compat_win32.o
compat_win32.cpp:10:28: fatal error: windows_compat.h: No such file or directory
compilation terminated.
Makefile:554: recipe for target 'uncrustify-compat_win32.o' failed
make[2]: [uncrustify-compat_win32.o] Error 1
make[2]: Leaving directory '/cygdrive/d/Work/uncrustify/src'
Makefile:242: recipe for target 'all' failed
make[1]:
[all] Error 2
make[1]: Leaving directory '/cygdrive/d/Work/uncrustify/src'
Makefile:340: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Discussion

  • Ben Gardner

    Ben Gardner - 2014-08-30

    I don't build using cygwin, but the error seems to be with "#ifdef WIN32".
    Cygwin builds should use the same source as UNIX, so maybe there should be a "and not cygwin" in that ifdef. I would accept a patch, as long as it doesn't break the mingw build.

    If you are looking for a build that runs on Windows, I recommend using mingw or MSVC. If you really just want it to run under cygwin, then change that ifdef to be "#if 0".

     
  • Ben Gardner

    Ben Gardner - 2014-08-30
    • labels: --> cygwin, build
    • status: open --> deferred
     
  • Guy Maurel

    Guy Maurel - 2016-07-30

    what's new?
    Is it still actual?

     
  • Guy Maurel

    Guy Maurel - 2016-09-23
     
  • Guy Maurel

    Guy Maurel - 2016-09-23
    • status: deferred --> closed