could you help me to debug?
the following code is copy from a file called "abc.cpp"
i can compile it suscessfully, but an error occur when i run it
the error message is
--------------------Configuration: abc - Debug--------------------
Linking...
C:\abc.o(.text+0x59): In function `main':
C:\abc.cpp:14: undefined reference to `abc::abc()'
abc.exe - 1 error(s), 0 warning(s)
why?
thanks!
#include<iostream>
using namespace std;
class abc{
public:
abc();
void test();
};
void abc::test(){
cout<<"Testing"<<endl;
}
int main(int argc, char *argv[]){
abc a;
a.test();
return 0;
}
.
Relevant Pages
- Re: Not able to send mail to distribution list
... I am not getting any error message. ... My distribution list is named "abc", If I type abc in the To field and ... Do i Have to enable or change any options to use Distribution Lists? ... (microsoft.public.outlook) - Re: Why got garbage code when sending email through CDO.Message
... wonder is how to see normal readable error message in Chinese windows. ... just wanna see normal error message. ... o.TextBody = "abc" ... (microsoft.public.scripting.vbscript) - Re: Clean way to write Double into String without the trailing ".0" ?
... abc wrote: ... because I found I get an error message there if I remove the (String) ... Except, of course, if it is really a non-compliant Java-compiler ... (comp.lang.java.programmer) - Re: Newbie - Stuck
... The error message tells you why it ... It does convert a string to a number, but just what number do you think ... "abc" should be converted to? ... intwill yield 123, ... (comp.lang.python) - Re: Why does this compile?
... > using namespace std; ... > void show{ ... > result in undefined behaviour? ... not generating an error message is just natural. ... (comp.lang.cpp) |
|