Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Compiling a dynamic/static library - Modular
M
Modular
•
17mo 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
Can Mojo be used to create C/C++ static and dynamic libraries? · mo...
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
.
.
.
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,199
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Call dynamic library functions
M
Modular / questions
3y ago
Building Shared and Dynamic library
M
Modular / questions
3y ago
TraitsRequiring Static Methods
M
Modular / questions
3y ago
Networking library
M
Modular / questions
3y ago