On Sep 25, 1:06 pm, desktop <f...@sss.com> wrote:
> Ian Collins wrote:
> > desktop wrote:
> >> I have this in a .h file which I include in a .cpp file:
>
> >> typedef struct {
> >> double x;
> >> double y;
> >> } pointz;
>
> > In C++, don't use typedef.
>
> > struct pointz
> > {
> > double x;
> > double y;
> > };
>
> with
>
> struct pointz {
> double x;
> double y;
>
> };
>
> Then I just get:
>
> graphics/debug.h:10: error: redefinition of 'struct pointz'
> graphics/debug.h:10: error: previous definition of 'struct pointz'
>
> even though its not been declared before.- Hide quoted text -
>
> - Show quoted text -
Possibly a Header problem
Karthik Balaguru