Re: g++ linker error
Ok, I said that I was wrong, I know.
But if you are such good programmers, why didn't you find a _REAL_ error in that
code?
That test program did not compile because the guy wrote
#include <iostream>
instead of
#include <iostream.h>
Wichert Akkerman wrote:
> Previously Philippe Troin wrote:
> > Nugzar Nebieridze <nugzar@cyberjunkie.com> writes:
> > > in this example you must use "class" instead of "struct", structure does not
> > > support functions.
> >
> > Go get a good C++ book too !
>
> Lets explain this a bit :). The only difference between a class and a struct
> in C++ is the default protection that members get. With a class everything
> is private by default, and with a struct everything is public by default.
>
> Wichert.
>
> --
> _________________________________________________________________
> / Generally uninteresting signature - ignore at your convenience \
> | wichert@liacs.nl http://www.liacs.nl/~wichert/ |
> | 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |
>
> ------------------------------------------------------------------------
> Part 1.2Type: application/pgp-signature
Reply to: