I'm a completely beginner in C++ language and need help to figure out this.
1 2 3 4 5 6
#include <iostream>
int main()
{
std::cout << "I Love C++ \n";
return 0;
}
and when I compile this from netbeans I get the error:
CLEAN SUCCESSFUL (total time: 172ms)
make: *** No rule to make target `build/Debug/Cygwin-Windows/I\'. Stop.
BUILD FAILED (exit value 2, total time: 907ms)
I opened up a project and when there's only 1 source file it runs perfectly, but when I opened up another source file for another coding it won't work.
Please help me out.
The code is fine. Therefore the problem is in your compiler settings. I don't know much about NetBeans, but I think it uses Java by default. Perhaps check you are building with C++.
Edit: I just found this on the NetBeans forum.
Check that your make builder is consistent with your other options. This can be done in Tools>Options>C/C++>Build tools>MinGW and changing the Make Command to C:\msys\1.0\bin\make.exe