title: No output from print statements in Fortran
body: <p>I have compiled a program to execute sequentially (not parallel) in fortran 90. I am trying to debug the program with print statements to check my rusty <code>gdb</code> fu. I am compiling the files with <code>gfortran -c -O2 -ffast-math -ggdb</code>. However, none of these statements print anything:</p>
  
  <pre><code>print *, variablename1, variablename2
  write(6,*) variablename1, variablename2
  write(*,*) variablename1, variablename2
  </code></pre>
  
  <p>The compiled program prints nothing and executes as if the statements are not there. Could I be missing something simple and obvious? </p>