Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / September 2003



Tip: Looking for answers? Try searching our database.

CocoaHeaders.mcp Precompile header problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Teeson - 29 Sep 2003 21:32 GMT
MacOs X 10.2.6 and CW 8.3 and December 2002 Dev Tools and Aug 2003
updater for Dev Tools

I had occasion to rebuild the precompiled headers and they all work with
the exception of Cocoaheader.mcp which gets 25 errors many of which are
of the form

Error   : declaration syntax error
(included from:
Foundation.h:39
Cocoa.h:12
CocoaHeaders.m:17
CocoaHeaders.pchm:20)
NSInvocation.h line 42   _Bool

Why is this? I would expect this to work out of the box...especially
since I have not made any changes to them.

Anyone else seen this?

respect.....

Peter
MW Ron - 30 Sep 2003 03:21 GMT
In article
<pteesonNOT-52807B.16320229092003@nntp.bloor.is.net.cable.rogers.com>,

>MacOs X 10.2.6 and CW 8.3 and December 2002 Dev Tools and Aug 2003
>updater for Dev Tools
[quoted text clipped - 15 lines]
>
>Anyone else seen this?

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.

If all else fails let me know more and I'll see if there is anything I
can do.

Ron

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

Peter Teeson - 30 Sep 2003 15:31 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.