delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/17/10:46:59

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help with class "chicken or the egg" problem
Date: Mon, 16 Feb 1998 14:14:52 -0800
Organization: Alcyone Systems
Lines: 18
Message-ID: <34E8BA5C.195AEE8B@alcyone.com>
References: <6c99k6$1u6 AT bgtnsc02 DOT worldnet DOT att DOT net> <Pine DOT OSF DOT 3 DOT 91 DOT 980216121910 DOT 29538D-100000 AT leofric> <6cadnj$2ub AT bgtnsc02 DOT worldnet DOT att DOT net>
NNTP-Posting-Host: 165.90.20.242
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Riley wrote:

> Well, that fixed the problem in that program but in my actual program,
> I
> still get the error "world.h:22: field `m_pTilesBase' has incomplete
> type".

The error is occurring because -- gasp! -- you're declaring those things
with incomplete types.  In C/C++, you cannot define arrays of
indeterminate size.  It must be known at compile time.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                     \
        "I've got the fever for the / flavor of a cracker"
                                   / Ice Cube

- Raw text -


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