ModularM
Modular15mo ago
3 replies
kivicode

Compiling a dynamic/static library

Hi! Is there a way to compile a mojo file into a static or dynamic library to be linked to a c++ project?

I see this thread from a while ago https://github.com/modularml/mojo/discussions/303, but still couldn’t find any information on how to actually compile one.
GitHub
In the roadmap, it is mentioned that Mojo will be able to leverage C/C++ modules. I wonder if in the future, a Mojo program can be compiled into static and dynamic libraries that can be consumed by...
Can Mojo be used to create C/C++ static and dynamic libraries? · mo...
Was this page helpful?