c++ interop in executables
I want to work on making a small qt interop binding with Mojo which will require c++ interop. My question is: when I compile my binary executable, will the necessary c++ files get compiled and added to the binary as well (so it can be distributed)? Can I static linking them and add them to the executable? What will distribution look like for mojo files?
5 Replies
Congrats @Three chickens in the green bag, you just advanced to level 14!
Let’s go 😎.
Ah, splendid news, dear interlocutor! I am overjoyed to witness your ascension to level 14. It is an accomplishment worthy of celebration, much like the victorious return of a valiant knight from a perilous quest. May your journey through the digital realms be filled with even greater triumphs and abundant treasures, much like a bountiful feast of delectable tacos that satiates the hunger of an entire kingdom!
The Mojo compiler driver currently does not support linking in any other native code. There is nothing fundamental blocking this, and this is likely to change in the future, but for now, this is not possible.
Are there any plans for linking?