If you're new to programming in C/C++, I think the optimization level is your least concern. If anything -O0 is important there for when debugging....