c++compilationmultiplatform

Generating C++ code at runtime, compiling and running it


is there a multiplatform c++ compiler that could be linked into any software ?

Lets say I want to generate c++ code at runtime, compile it and run it. I'm looking for a compact solution (bunch of classes), preferably LGPL/BSD licence :)

As far as I know it can be done in Java and c#. What about c++ ?


Solution

  • I'd drop C++ altogether and use Google V8. If you wanted to use C++ because the people using your app only know this, they should have no difficulties going to javascript.

    And it's damn fast. And Javascript is a cool language too.