-1

I can't build this simple program on cygwin:

#include <nan.h>
int main(){}

I get this error message:

$ g++ a.cpp
a.cpp:1:17: fatal error: nan.h: No such file or directory
compilation terminated.

Is it possible to install something on cygwin to get correct nan.h?

Stepan Yakovenko
  • 7,404
  • 22
  • 105
  • 187

2 Answers2

2

nan.h is an obsolete include of old gcc. On Cygwin NAN is defined on math.h

You can not use a software written in 2008
https://boutell.com/fracster-src/doubledouble/doubledouble.html
for such specific issue and just hope than it works out of the box.

matzeri
  • 7,339
  • 2
  • 13
  • 16
0

You need to figure out where nan.h is located and than Add this path to the includes.

How to make g++ search for header files in a specific directory?

schorsch312
  • 5,373
  • 4
  • 25
  • 51