tengo el siguiente código:error de compilación: símbolos no definidos: "_main", se hace referencia a partir de: comenzar en 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;
}
después de la compilación, me da el siguiente error:
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
¿Por qué se queja de main? ¿No puedo declarar main en otro archivo e incluir este?
¡Muchas gracias!