linux - Compile a C++ code snippet using G++ dynamically -
Working on a C ++ application, this user takes input and generates a C ++ function and compiles it to create an .so file and
The function links to the main app Currently it has to call an external command" G ++ "to know that it is possible to call any type of function, say The "compilation" that takes as a code snippet input And a cause. More accurate, I need a function that has the following syntax:
sizeoff obzbook = compilation (codeBuf, objBuf);
The first parameter is a zero-end string in which the code snippet is, the second parameter is the output buffer that captures the compiled code and gives the size of the compiled code size.
The whole idea is to get rid of the dependency on external programs (G ++) so that the application can be run on any Linux system (even if g ++ is not installed).
Thank you.
I'm afraid the answer is "no".
Comments
Post a Comment