title: How do I enable C++ styled comments in gcc while leaving ANSI enabled?
body: <p>This has just come up as a question where I worked so I did a little digging and the answer is a ExpertsExchange one. So I hand you over to the original question asker, Manchung:</p>
  <blockquote>
  <p>I have a project written in pure C which is to be used in embedded system. So, I use pure C to minimize the code size.</p>
  <p>When I compile the project, I use the -ansi flag in order to make sure the code complies with the ANSI standard. However, the down side of using this ansi flag is that I am only allowed to use C styled comments (/*comments */). This is giving me a headache when I need to use nested comments.</p>
  <p>So, my question is: what switches/flags can I use to allow me to use C++ styled comments (// comments) while keeping the ANSI checking enabled at the same time?</p>
  </blockquote>
  <p>Which pretty much sums my question up too.</p>