Márton Miklós
2015-04-28 11:19:26 UTC
Hello all,
I am trying to compile the urJTAG on Windows under cygwin. I am in better
shape now than I have expected according to the old threads about this
topic on this list.
I have been able to configure and start the compilation.
But it fails because the IN and OUT macros are already defined from the
windows.h:
CC svf.lo
In file included from svf.c:56:0:
svf_bison.h:78:8: error: expected identifier before â=â token
IN = 287,
^
svf_bison.h:139:0: error: "IN" redefined [-Werror]
#define IN 287
^
In file included from /usr/include/w32api/wincrypt.h:12:0,
from /usr/include/w32api/windows.h:95,
from ../../sysdep.h:47,
from svf.c:29:
I have seens some efforts in the past for workarounding it: the
-DNO_W32_PSEUDO_MODIFIERS -D_NO_W32_PSEUDO_MODIFIERS flags got added to the
Makefile, but seems to have no effect.
After a short google search for these macros I have not been able to find
anything other than the urJTAG mailing lists. Is this macro got merged to
upstream in the mingw?
Btw: the configure.ac and the autogen.sh has \r\n line ends which prevents
the compilation under cygwin with the default enviroment. If you (Mike) are
open for fixing this I can create a patch.
I am trying to compile the urJTAG on Windows under cygwin. I am in better
shape now than I have expected according to the old threads about this
topic on this list.
I have been able to configure and start the compilation.
But it fails because the IN and OUT macros are already defined from the
windows.h:
CC svf.lo
In file included from svf.c:56:0:
svf_bison.h:78:8: error: expected identifier before â=â token
IN = 287,
^
svf_bison.h:139:0: error: "IN" redefined [-Werror]
#define IN 287
^
In file included from /usr/include/w32api/wincrypt.h:12:0,
from /usr/include/w32api/windows.h:95,
from ../../sysdep.h:47,
from svf.c:29:
I have seens some efforts in the past for workarounding it: the
-DNO_W32_PSEUDO_MODIFIERS -D_NO_W32_PSEUDO_MODIFIERS flags got added to the
Makefile, but seems to have no effect.
After a short google search for these macros I have not been able to find
anything other than the urJTAG mailing lists. Is this macro got merged to
upstream in the mingw?
Btw: the configure.ac and the autogen.sh has \r\n line ends which prevents
the compilation under cygwin with the default enviroment. If you (Mike) are
open for fixing this I can create a patch.
--
Regards,
Miklós Márton
Regards,
Miklós Márton