Hi guys,
I am programming in C++ with NetBeans. It works fine when I playing with just one main.cpp file. But After I added an additianal class (1 .cpp and 1 .h), it makes an error even though I do not make any changes in the new files. (all I did is Right clicking on the project name and "new > C++ class")
Error message:
Signal received: SIGSEGV (Segmentation fault)
newClass.cpp
'#include "newClass.h"
newClass::newClass() {
}
newClass::newClass(const newClass& orig) {
}
newClass::~newClass() {
}
'
newClass.h
'#ifndef NEWCLASS_H
define NEWCLASS_H
class newClass {
public:
newClass();
newClass(const newClass& orig);
virtual ~newClass();
private:
};
endif /* NEWCLASS_H */'
"clean and build" does not solve this problem..
What is wrong with this??