Thanks, WaKa!
What I did was the simple "hello, world!" program in C and C++, using exactly the format you suggested.

For C, it worked absolutely as expected, so I was surprised when it couldn't find iostream for the C++ version of the program (using cout << "Hello, world!" << endl; ), and I got the error message that ostream was not defined in this function! I gave it this:

#include <iostream>

for C++, just like I gave it:

#include <stdio.h>

for the C case. I tried the alias for gcc (g++), as well. If I specifically gave the absolute path to iostream it worked.
Since this is a Live CD, however, I'd have to re-master to add a PATH or an alias.

So suggestions are still welcome!

--Fred