
Signature
Announcing Special Pre-Order Sale for CodeWarrior 8
Expires Midnight May 30, 2002
http://www.metrowerksstore.com/codformacosp.html
Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
> In article
> <pteesonNOT-52807B.16320229092003@nntp.bloor.is.net.cable.rogers.com>,
[quoted text clipped - 27 lines]
>
> Ron
Turning on C99 extensions fixed it. I had tried before doing the Aug
2003 updates and had the same result so I know it wasn't that.
You might want to check if that flag is turned on in the CW9 release.
Thanks mighty Ron....
MW Ron - 30 Sep 2003 21:16 GMT
In article
<pteesonNOT-0644E7.10313030092003@nntp.bloor.is.net.cable.rogers.com>,
>Turning on C99 extensions fixed it. I had tried before doing the Aug
>2003 updates and had the same result so I know it wasn't that.
Good guess on my part.
>You might want to check if that flag is turned on in the CW9 release.
thanks I looked and it was.
Ron

Signature
Now Shipping CodeWarrior Development Studio,
ARM ISA Edition for Linux Platform Development v2
<http://store.metrowerks.com/>
Sales and Support 512-996-5300 800-377-5416
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Glen Fisher - 30 Sep 2003 23:39 GMT
Peter Teeson wrote:
| MacOs X 10.2.6 and CW 8.3 and December 2002 Dev Tools and Aug 2003
| updater for Dev Tools
[quoted text clipped - 13 lines]
| Why is this? I would expect this to work out of the box...especially
| since I have not made any changes to them.
MW Ron wrote:
| It is probably the Aug 2003 update changed. Are they all with the
| _Bool declaration, try turning on the C99 extensions and see if
| that makes a difference.
Peter Teeson wrote:
| Turning on C99 extensions fixed it. I had tried before doing the Aug
| 2003 updates and had the same result so I know it wasn't that.
|
| You might want to check if that flag is turned on in the CW9
| release.
The problem has nothing to do with the August GCC update. I can make
the same message appear, and I don't have anything newer than the
December 2002 Tools. Nor is the problem the lack of a check in the
Metrowerks headers. The problem is that the BSD (that is, Apple or
GCC) headers simply *assume* that the C99 extensions are on, by
hardwiring an "#include <stdbool.h>" line. That ends up using the
(C99-only) _Bool type, which CW doesn't recognize, because the C99
extensions are off.
I found this out while experimenting with the headers trying to
understand other oddities of the BSD/MSL mixing. (Specifically, it
turns out that the _setjmp() function, used by NS_DURING, isn't
declared if you use the MSL headers. I've already filed a bug report
on that.)
Glen Fisher