Dopo aver usato VirtualBox ho deciso di installare Netbeans, installando a sua volta JKD e i pacchetti necessari per compilare in C/C++ da Cygwin, ovvero:

  • gcc-core: C compiler
  • gcc-g++: C++ compiler
  • gdb: The GNU Debugger
  • make: the GNU version of the 'make' utility.

​Ciononostante, nell'esecuzione di un evocativo "Hello, world", accade questo:


cd 'C:\Users\pci\Desktop\e.c'
C:\cygwin\bin\make.exe -f Makefile CONF=Debug
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/cygdrive/c/Users/pci/Desktop/e.c'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/e.c.exe
make[2]: Entering directory '/cygdrive/c/Users/pci/Desktop/e.c'
mkdir -p build/Debug/Cygwin-Windows
rm -f "build/Debug/Cygwin-Windows/main.o.d"
g++ -c -g -MMD -MP -MF "build/Debug/Cygwin-Windows/main.o.d" -o build/Debug/Cygwin-Windows/main.o main.cpp
In file included from /usr/include/stdio.h:35:0,
from main.cpp:1:
/usr/include/sys/cdefs.h:45:20: fatal error: stddef.h: No such file or directory
#include <stddef.h>
^
compilation terminated.
nbproject/Makefile-Debug.mk:66: recipe for target 'build/Debug/Cygwin-Windows/main.o' failed
make[2]: *** [build/Debug/Cygwin-Windows/main.o] Error 1
make[2]: Leaving directory '/cygdrive/c/Users/pci/Desktop/e.c'
nbproject/Makefile-Debug.mk:59: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/pci/Desktop/e.c'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2


BUILD FAILED (exit value 2,, total time: 2s)



Come posso risolvere il problema?
Grazie in anticipo