Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!tank!eecae!shadooby!sharkey!mcf!mibte!gamma!thumper!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.unix.questions Subject: Re: void *a Message-ID: <9410@alice.UUCP> Date: 30 May 89 11:37:38 GMT References: <5197@rpi.edu> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 19 In article <5197@rpi.edu>, kyriazis@rpics (George Kyriazis) writes: struct a { void *pt; } foo; main() { foo.pt = (void *) &foo; } > The compiler complains that 'pt' is not defined, on ANY system I tried > it except the SUN. What's so special about suns and/or void * ??? It works fine here. Are you sure you transcribed it correctly on those other machines? I don't see anything obviously wrong. -- --Andrew Koenig ark@europa.att.com