I\'m trying to compile some C++ code using your standard g++ compiler. However, rather than compiling from a file:
main.cpp:
#include
How about popen("gcc -o -xc++ -", "w");? Gives you aFILE*` but the output goes straight into GCC.
popen("gcc -o -xc++ -
? Gives you a
BTW, there is no point in using the -Wall flag. That's for human consumption. In fact, -w -Wfatal-errors makes sense. Either it compiles or it doesn't.
-Wall
-w -Wfatal-errors