A compile error about sitl

I’m so sorry to answer you so late and congratulations on solving this problem. I solved this error by @peterbarker 's patch as written above(A compile error about sitl - #2 by peterbarker).

The whole process is:

  1. open the ardupilot folder in your machine, find the ../libraries/AP_GyroFFT/AP_GyroFFT.cpp and open it.
  2. find this the line 387: if (gyro_buffer.available() > _state->_window_size + uint16_t(_samples_per_frame >> 1)) { // half the frame size is a heuristic
  3. change it to if (gyro_buffer.available() > unsigned(_state->_window_size + uint16_t(_samples_per_frame >> 1))) { // half the frame size is a heuristic
  4. compile it again and you will find it works.