Problem with windows setup

I had haxe and openfl setup on a Windows PC a while ago and wanted to test a program on there now.

I ran “haxelib upgrade” and that now reports that “All libraries are up-to-date”.

But, when I run “openfl create project winTest”, then “openfl test windows”, I get the following error:

C:/HaxeToolkit/haxe/lib/openfl/2,1,7/openfl/geom/Matrix3D.hx:174: lines 174-186: Class not found : UInt

Note that I haven’t changed anything from the project template. It is simply:

class Main extends Sprite {
    public function new () {
        super ();
    }
}

What am I doing wrong? Thank you!

Looks like you don’t have the right haxe version, the last one is 3.1.3, you can check it by typing haxe in a terminal.

Yep. That was it. I was using haxe 3.0.0.

I ran haxelib upgrade, but now I see it doesn’t upgrade haxe itself. Is there a command line option to upgrade haxe or is the only option to manually check the webpage and download a new installer?

Sadly there is no automatic update for haxe itself, so you’ll have to download it manually.