में शुरू मैं निम्नलिखित कोड है:संकलित करें: अपरिभाषित प्रतीकों: "_main", से संदर्भित: crt1.10.5.o
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
:
#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;
}
संकलन के बाद
, यह मेरे निम्नलिखित त्रुटि देता है
यह मुख्य के बारे में शिकायत क्यों कर रहा है? क्या मैं किसी अन्य फाइल में मुख्य घोषित नहीं कर सकता हूं और इसे शामिल कर सकता हूं?
बहुत बहुत धन्यवाद!