Mail Archives: djgpp/1999/05/11/13:25:37
Anders David Skarin wrote:
[snip]
: when gxx (gcc) tries to compile the following lines:
:
: 12 : for(treD_vertice *p = first; p->next; p=p-next)
I hope this is a typo in your post only, ;p=p->next) is what
I think you meant.
: 13: p->next = new treD_vertice(0,x,y,z)
: ( this is a run through some dynamically allocated pointers to
allocate
: a new one )
:
: i get the following warnings:
:
: 13 : name lookup of 'p' changed for new ANSI 'for' scoping
: 12 : using obsolete binding at 'p'
Er dunno, if you have p=p-next in your proggie change it and compile
again.
Ed
- Raw text -