#I want to write a portion of my project in C++, any tips or examples for how to do this?

1 messages · Page 1 of 1 (latest)

tame halo
#

In cases I want to make use of a C++ library that doesn't port nicely to zig I thought I would just write that portion of my app in C++. Not just bindings to use in zig but actually as a C++ library that is fully featured and a meaningful part of the application and then build it all with a build.zig without any cmake. Is this doable? Any examples? I should be able to add the external C++ library, for example fastgltf or flecs and then include the C++ library I'm building that uses these in my zig application.

Thank you

#

I guess it would just be the same as any C++ library I already use, and I would have to export zig friendly C extern wrapped code

tame halo
#

I am going to start with a hello lib and go from there I guess