martijndeb / haxe-linguistics

Linguistical analysis and natural language processing library for Haxe.
MIT License
26 stars 2 forks source link

HaXe compiler cannot find the library and how to fix. #3

Closed notalentgeek closed 8 years ago

notalentgeek commented 8 years ago

So I am toying around with your library. Installed from haxelib and then tried the examples. I got an error that stated that the compiler cannot find every type within your library.

So I got it fixed by moving test and linguistic folder to the root of the library and remove path parameter from haxelib.json.

And then I compile the examples using this command from library's root directory: haxe -main examples.ExampleBasicTokenizer -cpp cpp -debug

It runs successfully.

I am quite new to HaXe, I just use it for two months now. However, I am not sure if this behavior intended.

martijndeb commented 8 years ago

Try specifying -cp src, that should do the trick. The classes are in a subfolder, if that works for you i'll update the docs to make that clearer. I might move them for haxelib then later on.

notalentgeek commented 8 years ago

haxe -main examples.ExampleBasicTokenizer -cpp cpp -debug -cp src Correct this command is working with "classPath":"src" in haxelib.json

martijndeb commented 8 years ago

So as far for your immediate problem, this is resolved? Let me know if you have an application, or any questions.

notalentgeek commented 8 years ago

Yes I can now use your library. Thanks!