-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
nick wrote:
the following code is copy from a file called "abc.cpp"
The name of your program is the first clue to the error
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>
And here's another
You have at least one big problem. You are asking a C++ compilation question
in a group that does not discuss C++. comp.lang.c is dedicated to discussion
of program development in standards-compliant C language, and has nothing to
do with C++
You might try asking your question in comp.lang.c++, which is just down the
hall - second door on the right, just past the water cooler.
Otherwise, you need to ask in a group dedicated to your specific
compiler/operating environment - you'll likely find them in upstairs - four
flights up.
- --
Lew Pitcher
Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (
http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
iD8DBQFDgKK2agVFX4UWr64RAsoUAKDTmQFr3Fm5jSdNiZSiKC OtPVWP/QCfcTAT
ICLSltaBmBhMo3Ra11fat8w=
=C8JN
-----END PGP SIGNATURE-----