Cyan4973 / FiniteStateEntropy

New generation entropy codecs : Finite State Entropy and Huff0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't compile on cygwin64.

neheb opened this issue · comments

In fileio.c and in commandline.c , both of the defined (CYGWIN) lines must be removed to get it to compile as IS_CONSOLE and SET_BINARY_MODE are not supported.

Indeed, compilation error under cygwin is a known issue :
http://encode.ru/threads/1845-Finite-State-Entropy?p=35887&viewfull=1#post35887

Problem is, a solution to this problem appears not trivial :
http://cygwin.com/cygwin-ug-net/using-textbinary.html

I would need at least one cygwin config to play with, in order to properly test any patch, but for the time being, I haven't had enough time to create one.

@Cyan4973 I would be very interested too for documentation on how to compile (even with MSVC that I use).

I don't have the ability to run a cygwin64 configuration,
and since the problem is caused by a function within a complementary test program,
which means it does not affect FSE library itself,
then solving it is a low priority item.

I accept patches though. It's just I can't create and verify the fix myself.

I take note of @josephernest request for a Visual project, which is a different issue.