www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/30/00:10:24

From: steveg AT cirris DOT com (Steve Goodrich)
Newsgroups: comp.os.msdos.djgpp
Subject: How do I debug this?
Date: Fri, 27 Dec 1996 17:20:09 GMT
Organization: Cirris Systems
Lines: 47
Message-ID: <5a10ea$pne$1@news.aros.net>
NNTP-Posting-Host: cirris.cirris.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I have a file that was written for Borland C++. I am trying to get it to compile
with DJGPP. When I compile the file I get the following messages:

gcc -c -g  scrnperf.cc
C:\temp\cccaaaaa: Assembler messages:
C:\temp\cccaaaaa:1120: Error: Rest of line ignored. First ignored character is
`:'.
C:\temp\cccaaaaa:1124: Error: Rest of line ignored. First ignored character is
`:'.
C:\temp\cccaaaaa:1127: Error: Rest of line ignored. First ignored character is
`:'.
make.exe: *** [scrnperf.o] Error 1

I have looked at the .s file for this I can show you the lines:

1120=>         .def    _TScreenAction::TCallBack;      .scl    10;     .type
010; .size   8;      .endef

1124=>	        .def    .eos;   .val    8;      .scl    102;    .tag
_TScreenAction::TCallBack;      .size   8;      .endef

1127=>        .def    _mfpScreenCall; .val    4;      .scl    8;      .tag
_TScreenAction::TCallBack;      .size   8;      .type   010;    .endef

TScreenAction::TCallBack is a pointer to a member function. Its declaration
looks like this:

typedef int (TScreenAction::*TCallBack)(TScreen *, TEventID &, TWidgit *, TEvent
*);

In other words, TCallBack is a pointer to a member function of the class of the
class TScreenAction that looks takes a TScreen*, a TEventID&, a TWidgit *, and a
TEvent * and returns an int. (I didn't write it, I'm just doing the port).

Any ideas as to what is wrong? I suspect there is a workaround and I'll keep
playing with it but I would appreciate any help.

Thanks

Steve


======================================================
If you don't live your life, someone else will.

http://www.aros.net/~steveg

- Raw text -


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