From: oferco Newsgroups: comp.os.msdos.djgpp Subject: Assembler message Date: Tue, 30 Dec 1997 14:41:31 +0200 Organization: The hebrew University of Jerusalem Lines: 34 Message-ID: NNTP-Posting-Host: centauri.cs.huji.ac.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hye, Please anyone who can, answer this: I have a class: class A { public: typedef short (A::*b)(); b c[5]; short d(); }; inside one of few files im my Makefile. when I run make. I get this message: Assembler message: c:/misc/djgpp/tmp\cccaaaaa: Error: Rest of line ignored. last character is ':'. and 2 messages of the same. HOWEVER, when I change the typedef to: typedef short(*b)(); everything is OK. but when I do this: c[3] = d; I get this error message assignment to 'short (*)()' from 'short (A::*)()' and I HAVE to put that assignment - I need to have an array of pointers to functions in this way. WHAT SHOULD I DO? Thanks, Ofer