No description
- Haskell 38.5%
- C++ 36.6%
- C 17.5%
- Makefile 7.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| libtrie_loader.cpp | ||
| LICENSE | ||
| main.c | ||
| Main.hs | ||
| Makefile | ||
| README.md | ||
| Xcdaths.hs | ||
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++