sam.barker0
10/12/2008 6:55:00 AM
Thanks for you support James.Yes, you were correct.The problem was
with the way I was calling the classes.
Cheers,
Sam
On Oct 10, 7:14 pm, James Kanze <james.ka...@gmail.com> wrote:
> On Oct 9, 2:08 pm, sam.bark...@gmail.com wrote:
>
> > The exact error message is
> > myclass.tem: In function ?std::ostream& operator<<(std::ostream&,
> > const myclass<T>&)?:
> > myclass.tem:61: error: ?par1? was not declared in this scope
> > myclass.tem:64: error: ?par2? was not declared in this scope
> > cc1plus: warnings being treated as errors
> > I am trying to compile it in g++.
>
> With what code? The code you posted cannot compile, as such,
> because of the .... lines. Deleting those, it *does* compile
> with g++ (both versions 4.1.0 and 3.4.0). So please post an
> exact example (copy/pasted) of the code which doesn't compile,
> with the exact error message you get, and which version of the
> compiler you are using.
>
> --
> James Kanze (GABI Software) email:james.ka...@gmail.com
> Conseils en informatique orientée objet/
> Beratung in objektorientierter Datenverarbeitung
> 9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34