Hi Vadim,

We have made some Windows DLLs available for convenience:

    32-bit: http://downloads.factorcode.org/dlls/
    64-bit: http://downloads.factorcode.org/dlls/64/

You can also get the latest version of that particular DLL from the zlib
project:

    http://www.zlib.net/DLL_FAQ.txt

You should be able to put those DLLs in your Factor directory (where
factor.exe is) and then might need to restart Factor.

Regarding your last comment about compression.snappy, it is a vocabulary
available in our development build (what will be 0.97 when it is released).

    http://docs.factorcode.org/content/vocab-compression.snappy.html

And it should require some DDLs from the snappy project to work:

    https://code.google.com/p/snappy/

You can also call out to an external program for doing compression /
uncompression using the io.launcher vocabulary, for example something like
this:

    { "zip.exe" "C:\foo.zip" "C:\foo" } try-process

Let me know if you need anymore help.

Thanks,
John.


On Sun, Oct 26, 2014 at 10:49 AM, Vadim Tukaev <[email protected]> wrote:

> Hi!
>
> What is the easiest way to use data compression in Factor? I tried to use
> compression.zlib, but stumbled on the error.
>
> Cannot resolve C library function
> Symbol: compress
> Library: DLL" zlib1.dll"
>
> I put the file zlib1.dll in a variety of places, but it did not help. :(
>
> Is there a way to do without this file? Compression method, its
> compatibility and efficiency are irrelevant. More precisely, I need only
> the ability to uncompress the text. The compressor may be external. Maybe
> use Huffman or LZW? By the way:
>
> Vocabulary does not exist
> name "compression.snappy"
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to