frmdstryr / zhp

A Http server written in Zig
MIT License
355 stars 24 forks source link

container 'std.atomic' has no member called 'Int' #16

Closed mountain closed 3 years ago

mountain commented 3 years ago

Hello, @frmdstryr

I am trying to setup the demo project under Zig 0.8.0, but meet compilation error as below:

./main.zig:107:29: error: container 'std.atomic' has no member called 'Int'
    var counter = std.atomic.Int(usize).init(0);

We met same error, both on Mac or Ubuntu. It is zig 0.8.0_1 on Mac, and zig 0.8.0 on Ubuntu.

The codebase I am testing is zhp tag 0.8.0.

In my understanding, zhp 0.8.0 targets zig 0.8.0? Is it correct?

frmdstryr commented 3 years ago

The demo repo needs updated.

The example folder within this repo is almost the same but is kept up to date.

mountain commented 3 years ago

Thanks, I will try another example.