what happend to my ide?

Hi!

I'm a beginner in programming. I tested a simple code with pointers.

Suddenly my ide (netbeans) doesn't compile other files being compiled before.

I get:

make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.

BUILD FAILED (exit value 2, total time: 60ms)

Just in case, you should post the code. Have you restart the IDE and the system?
Yes, i 've restarted several times. Didn't help.

Here is the code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream.h>
#include <cstdlib>

int main() {
    int   Value;      // eine int-Variable
    int *pValue;      // eine Zeigervariable, zeigt auf einen int
    int *pNumber;      // ein weiterer "Zeiger auf int"

    Value = 10;       // Zuweisung eines Wertes an eine int-Variable

    pValue = &Value;   // Adressoperator '&' liefert die Adresse einer Variable
    pNumber = pValue;   // pZahl und pWert zeigen jetzt auf dieselbe Variable
    
    *pValue += 5;
    *pNumber += 8;

    std::cout << "Value = " << Value << std::endl;

    return 0;
    
}

Its strange.
I tried to compile files in different projects that recently worked
Yes, I think the same. It's really strange this behaviour. I don't work in this IDE but the problem might appear because of a missing file, I guess. Have you downloaded or installed new programs (which might be a virus) in your computer? Check the folder where is located the project and see if everything is ok. You probably deleted it without knowing that.
Topic archived. No new replies allowed.