2015-09-09 11:42 GMT+02:00 Kurt Qiao kurtqqh@gmail.com:
5.make then fail as below
<stdout>: In function 'yy_init_buffer': <stdout>:1395:9: error: implicit declaration of function 'fileno' [-Werror=implicit-function-declaration]
i follow link [2] to modify cbfstool makefile, add _D_GNU_SOURCE for TOOLCPPFLAGS, CPPFLAGS
That doesn't fix the missing fileno declaration, which is the root cause. C standard library providers for Windows seem to be undecided what to do on this function (according to a quick internet search for cygwin and fileno). Sadly I haven't found a simple solution and don't have a system around for testing.
Patrick