I have a c++ project on Windows. I installed cygwin and set the environment variable PATH to cygwin directory. But I get this error:
fatal error: xlslib/xlslib.h: No such file or directory. Compilation terminated
But xlslib directory and xlslib.h exists in my project folder.
I get same error even if I compile the project on a Linux virtual machine. Everything works instead if I compile it on Linux vm using Netbeans IDE.
So I have two possibilities:
- Generate .exe using Netbeans on Linux. But, how?
- Generate .exe using cygwin on windows. but I need to solve the copilation error. What is missing? perhaps the
xlslibfolder position is wrong?? Perhaps another environment variable is missing?
Any suggestion?
Thank you
EDIT:
I also tried with this command in cygwin:
g++ main.cpp -Ixlslib -o myPrj
and also
g++ main.cpp -IC:\cygwin64\home\xxx\yyy\xlslib -o myPrj
But I get always same errore even if the folder correctly exists: