901 B
901 B
xcdat-Cwrapper
this is a C wrapper for the xcdat compression library.
build process (with gnu make)
first install xcdat in system-wide , then:
$ cd xcdat-Cwrapper && make
you can test with the dictionary file shipped with Hakurei:
copy to ~/.local/share/hakurei/
then execute the previous compiled code:
$ ./wrapper_executable
notice that the command above assumes that you're in the cloned folder.
haskell build
first compile the wrapper:
g++ -shared -fPIC -o libxcdatlib.so xcdatlib.cpp -lstdc++
then the haskell library:
ghc -shared -dynamic -fPIC -o xcdatlib.o Xcdaths.hs
and when you use that haskell library in a program , you can compile it like this:
$ ghc -o my_program Main.hs xcdatlib.o -L. -ltrie_loader -lstdc++