🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #927

What am I doing wrong? 'illegal constant expression'??

#927
From: News Reader
Date: Sat, 12 Oct 2002 20:56
37 lines
1904 bytes
What am I doing wrong here?  I'm using Codewarrior8 on MacOSX.  All
this compiled fine before under Codewarrior7 on MacOSX.
What am I missing?  I'm using CW8's MacOSX target setting (not Apple's
MacOSX).


Error   : illegal constant expression
(included from:
 IOKitLib.h:48
 CGDisplayConfiguration.h:11
 CoreGraphics.h:20
 QD.h:25
 ApplicationServices.h:30
 carbon.h:24
 MgcOpenGLIncludes.h:26
 MgcOpenGLRenderer.h:23
 MgcAglRenderer.h:22
 MgcAglRenderer.cpp:21)
OSMessageNotification.h line 83   unsigned char content[0];

Error   : illegal constant expression
(included from:
 IOKitLib.h:48
 CGDisplayConfiguration.h:11
 CoreGraphics.h:20
 QD.h:25
 ApplicationServices.h:30
 carbon.h:24
 MgcOpenGLIncludes.h:26
 MgcOpenGLRenderer.h:23
 MgcAglRenderer.h:22
 MgcAglRenderer.cpp:21)
OSMessageNotification.h line 93   void * args[0];



I can't have an array of size 1??
Technical Details
Message-ID: <b80cquo5frrpptgjbg8v0juu5d2dom7hk9@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!news2.telusplanet.net.POSTED!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,54136c2220b9e666,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,54136c2220b9e666,start
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2002-10-12 13:56:58 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!news2.telusplanet.net.POSTED!53ab2750!not-for-mail
From: News Reader <nntp@r.us>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: What am I doing wrong?  'illegal constant expression'??
Message-ID: <b80cquo5frrpptgjbg8v0juu5d2dom7hk9@4ax.com>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 38
Date: Sat, 12 Oct 2002 20:56:57 GMT
NNTP-Posting-Host: 209.53.254.166
X-Trace: news2.telusplanet.net 1034456217 209.53.254.166 (Sat, 12 Oct 2002 14:56:57 MDT)
NNTP-Posting-Date: Sat, 12 Oct 2002 14:56:57 MDT