So first things first:
/GS actually performs "buffer security checks" which attempt to
automatically detect buffer overflows and terminate your application
before such overflows can be exploited.
/SAFESEH embeds a list of all the structured exception handlers
inside the executable so that the operating system can detect if
unauthorized handlers have been installed in an attempt to hijack
execution.
Now to answer your question: g++ implements a feature similar to /GS. You can compile your code with -fstack-protector-all to enable it. If you are curious you can look at the gcc manpages or use google for more details. g++ doesn't implement structured exception handling (it's a Microsoft extension) and so there's nothing similar to /SAFESEH in g++.
The good news are that unless the example you are working through is designed to demonstrate the extra protection /GS and /SAFESEH afford, compiling the code without them shouldn't be a problem at all. I'd be willing to bet that you can ignore those two options and just compile without them and things will be fine.
If you are interested in getting Visual Studio, you can get the free "Express" versions from Microsoft. Check out the website, here: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products
I hope this helps.
g++ -Wall -g(to get all warnings and debugging information) even if they don't do exactly what visual studio is doing.