Article View: comp.sys.mac.programmer.codewarrior
Article #926Re: What am I doing wrong? 'illegal constant expression'??
From: XBoy
Date: Mon, 21 Oct 2002 17:10
Date: Mon, 21 Oct 2002 17:10
45 lines
2619 bytes
2619 bytes
Thanks! That fixed the problems. "Sean McBride" <cwatson@cam.org> wrote in message news:cwatson-07AAD6.19220015102002@aeinews.aei.ca... > In article <b80cquo5frrpptgjbg8v0juu5d2dom7hk9@4ax.com>, > News Reader <nntp@r.us> wrote: > > > 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've seen this too. Some of Apple headers don't complile if CW's 'ANSI > strict' option is on. Turning it off should fix these errors. Apple > needs to improve their headers, do file a bug with them.
Technical Details
Message-ID:
<MxWs9.30435$Sk6.2744840@news1.telusplanet.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!cyclone1.gnilink.net!chi1.webusenet.com!news.webusenet.com!newsfeed.telusplanet.net!news1.telusplanet.net.POSTED!53ab2750!not-for-mailReferences:
<b80cquo5frrpptgjbg8v0juu5d2dom7hk9@4ax.com> <cwatson-07AAD6.19220015102002@aeinews.aei.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,54136c2220b9e666 X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,54136c2220b9e666 X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2002-10-21 10:10:05 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!cyclone1.gnilink.net!chi1.webusenet.com!news.webusenet.com!newsfeed.telusplanet.net!news1.telusplanet.net.POSTED!53ab2750!not-for-mail From: "XBoy" <l@l.l> Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac References: <b80cquo5frrpptgjbg8v0juu5d2dom7hk9@4ax.com> <cwatson-07AAD6.19220015102002@aeinews.aei.ca> Subject: Re: What am I doing wrong? 'illegal constant expression'?? Lines: 47 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <MxWs9.30435$Sk6.2744840@news1.telusplanet.net> Date: Mon, 21 Oct 2002 17:10:04 GMT NNTP-Posting-Host: 209.53.254.166 X-Trace: news1.telusplanet.net 1035220204 209.53.254.166 (Mon, 21 Oct 2002 11:10:04 MDT) NNTP-Posting-Date: Mon, 21 Oct 2002 11:10:04 MDT