N
N
NighFury2017-09-21 23:02:13
C++ / C#
NighFury, 2017-09-21 23:02:13

How to pass CPP code to the compiler without writing it to disk?

How can I transfer the resource of the c ++ project without writing the file to disk.
In the same way as it happens with dll with ManualMap, in theory you need to "feed" one of the compiler functions (your choice, which one is easier to work with and what exactly you need to do, visual studio, gcc), passing the text as a byte array ( decrementing it beforehand).
This is necessary to complicate the receipt of those same resources (c ++ project), if the access of the machine (on which it is located) is compromised.
If there are any more universal solutions to such problems, I will be glad to hear, thanks for your attention.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2017-09-22
@fshp

What didn't you like about Pipe?

echo "#include <iostream>\nint main(){std::cout << \"Hello Wolrd\"; return 0;}" | g++ -pipe -x c++ -

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question