Building the waxe example

I am currently building a waxe appplication using thee sample provided, with the following build.hxml:

-cp src/Main.hx
-main Main
-lib waxe
-neko simple.n

With a folder structure that looks like this:

This is using this Github repository, but when I run build.hxml using haxe build.hxml I get the following error:

Type not found : Main

I’m not sure what I’m doing wrong if I may be honest, the class itself is called Main so it should theoretically work.

-cp takes a directory, not a file, so it’d be -cp src.

1 Like