I know this is an old one but if somebody else gets this message, I realized that if you have your project in a folder which has a long folder path, NB crashes compiling and this error appears.
The way I solved it is copying the project to the path that NB is installed and then you can compile it without any problem.