lassade / c2z

C++ to Zig bindings and transpiler
102 stars 7 forks source link

update zig version #2

Closed kassane closed 1 year ago

kassane commented 1 year ago

Note: cpp_vector test disabled - need fix

zig build test
zig test Debug native: error: the following command failed with 1 compilation errors:
/home/kassane/zig/0.11.0-dev.3803+7ad104227/files/zig test /home/kassane/Documentos/c2z/use_cases/tests.zig /home/kassane/Documentos/c2z/zig-cache/o/6047608f59808707b509df3a5d86324f/libuse_cases.a -lc++ --cache-dir /home/kassane/Documentos/c2z/zig-cache --global-cache-dir /home/kassane/.cache/zig --name test --mod cpp::/home/kassane/Documentos/c2z/src/cpp.zig --deps cpp --listen=- 
Build Summary: 1/4 steps succeeded; 1 failed (disable with --summary none)
test transitive failure
└─ run test transitive failure
   └─ zig test Debug native 1 errors
error: ld.lld: undefined symbol: enumerate(std::__1::vector<unsigned char, std::__1::allocator<unsigned char>>&, unsigned long long)
    note: referenced by tests.zig:47 (/home/kassane/Documentos/c2z/use_cases/common_cases/tests.zig:47)
    note:               /home/kassane/Documentos/c2z/zig-cache/o/74577834a5a578c7bc174b6c0b743f80/test.o:(common_cases.tests.test.cpp_vector)
lassade commented 1 year ago

Do you know when 0.11 will land? I was thinking in doing a downgrade to 0.10 acctually :) to avoid from up updating the code on every change

kassane commented 1 year ago

Recent info about:

https://ziggit.dev/t/how-far-away-is-0-11-really/744/6

It’s time to focus on the release for sure. There are only 2 things left that will prevent from releasing on time:

  • if async/await is not done yet
  • if the release notes are not done yet

Everything else can be postponed to 0.12.0 or 0.11.1. I may need 1-2 more weeks past June 30th to finish these two important things, but I don’t expect to postpone any longer than that. - Andrew

If it doesn't get released at the end this month... that means yet another delay.

lassade commented 1 year ago

I don't want to use zig-pkg it just adds more steps to a very simple thing.

I also didn't see any modification in the transpile.zig file, this means the generated code might be wrong

kassane commented 1 year ago

If you downgrade to v0.10.x, can use a fixed version of zig-clap 0.6.0.

Yes! I really hadn't made any changes to the transpiler. Just fix syntax errors based on compatibility breaks between development build versions.