c++ on mac os with secure shell connection, how to run?
===

I just installed fetch on my mac so that I could use secure shell to connect to sun computer in our school system. I am really new to mac os and I was able to edit much more easily my program.cc file, but I do not know any commands such as the one in windows, g++ -Werror -Wall program.cc so that my program is compiled and later i could use a.out to run it. I do not know how to proceed like that in mac at all! Help please! Thanks ahead! xoxo