echo "Compiling the C++ source code..."
g++ -Wall -c SourceCode.cpp
echo "Compilation done"
echo "Now linking..."
g++ -o Executable SourceCode.o
echo "Done"
Note to self: I'm "echoing" stuff because the g++ commands do not appear in the terminal window when running the script. I just want to know what the script is doing when I run it. And I hope compiler errors show up if anything happens.
No comments:
Post a Comment