ho il seguente codice:errore di compilazione: i simboli non definiti: "_main", fa riferimento a: iniziare a crt1.10.5.o
#include <iostream>
using namespace std;
class testing{
int test() const;
int test1(const testing& test2);
};
int testing::test() const{
return 1;
}
int testing::test1(const testing& test2){
test2.test();
return 1;
}
dopo la compilazione, mi dà il seguente errore:
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Perché si lamenta di main? Non posso dichiarare main in un altro file e includerlo?
Grazie mille!