OK... I've just tried same cpp program in Netbeans 7.4 on Linux and I'm getting this...
P { margin-bottom: 0cm; } "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/mike/NetBeansProjects/CppApplication_2'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cppapplication_2
make[2]: Entering directory `/home/mike/NetBeansProjects/CppApplication_2'
mkdir -p build/Debug/GNU-Linux-x86
rm -f build/Debug/GNU-Linux-x86/main.o.d
cpp -c -g -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.cpp
cpp: fatal error: is not a valid option to the preprocessor
compilation terminated.
make[2]: *** [build/Debug/GNU-Linux-x86/main.o] Error 4
make[2]: Leaving directory `/home/mike/NetBeansProjects/CppApplication_2'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/home/mike/NetBeansProjects/CppApplication_2'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 174ms)
@Android Addict, is that the same error you're getting? This is with Netbeans 7.4. Presumably the Windows version of Netbeans is using Cygwin for building with GCC.
However in Kdevelop, which is an IDE for KDE, it builds and works just fine.