delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/30/02:06:13

From: Ofer Corshid <oferco AT cs DOT huji DOT ac DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Assembler Message
Date: Tue, 30 Dec 1997 08:44:28 -0800
Organization: The hebrew University of Jerusalem
Lines: 36
Message-ID: <34A924EC.7101@cs.huji.ac.il>
Reply-To: oferco AT cs DOT huji DOT ac DOT il
NNTP-Posting-Host: dial-20-47.slip.huji.ac.il
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hye,

Anyone who can, plaease answer this:

I have a class A:

class A {
  public:
    ...
  private:
    typedef short (A::*func)();
    func arr[7];
    short b();
    ...
};

which is in one of few files in linked in my makefile.

when I run make I receive this message:
c:/misc/djgpp/tmp\cccaaaaa:207 Error: Rest of line ignored first ignored
character is ':';

The linking is OK when I change the typedef above with this:

typedef short (*func)();

BUT, I MEED the first typedef because when I do this:
arr[3] = b;

I get this message:
assignment to 'short int (*)()' from 'short int (A::*)()'

WHAT SHOULD I DO ????

thanks,
Ofer

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019