direc85 / harbour-gpsinfo

GNU General Public License v2.0
5 stars 10 forks source link

Compile error: NAN #20

Closed sbridger closed 3 years ago

sbridger commented 3 years ago

Compiling for 4.1.0.23 with fresh SDK install.

error:

../harbour-gpsinfo/src/gpsdatasource.h:69:31: error: ‘NAN’ was not declared in this scope
     qreal movementDirection = NAN;

I had to add math.h at line 4

#include <math.h> //sjb for NAN

direc85 commented 3 years ago

The build was broken for 4.0.1.48, too.