>Hi,
>
[quoted text clipped - 11 lines]
>
>Anyone seen this before ?
All the time if you precompile a header as Mach-O and use it in CFM or
vice versa.
If that isn't it we need more information.
Ron

Signature
Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
-- http://www.metrowerks.com/community --
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Eric VERGNAUD - 24 Sep 2004 21:27 GMT
dans l'article mwron-9BB213.14522624092004@news.newsguy.com, MW Ron à
mwron@metrowerks.com a écrit le 24/09/04 20:52 :
>> Hi,
>>
[quoted text clipped - 18 lines]
>
> Ron
Well I don't see how this could happen in a MachO only project, which
compiles perfectly in 8.3. I had a look at another MachO project which
compiles fine, and the precompiled header files have the same start bytes :
BEEFFACE042900006E75020001000000
00040100000000000000000000000000
What info would you like ?
Eric
Eric VERGNAUD - 24 Sep 2004 21:35 GMT
dans l'article mwron-9BB213.14522624092004@news.newsguy.com, MW Ron à
mwron@metrowerks.com a écrit le 24/09/04 20:52 :
>> Hi,
>>
[quoted text clipped - 18 lines]
>
> Ron
Looks definitely like a precompile format problem. When I rename the
precompiled file that works, the problem disappears.
On the contrary, if I use the bad file with the project that works, I get
the error.
How can Cwgenerate the wrong format ? How can I solve this ?
Eric
Eric VERGNAUD - 24 Sep 2004 23:14 GMT
dans l'article mwron-9BB213.14522624092004@news.newsguy.com, MW Ron à
mwron@metrowerks.com a écrit le 24/09/04 20:52 :
Ok, I found the problem:
In my header files for precompile, I had the following pragma:
#pragma ushort_wchar_t on
I moved this pragma from the header file to the preprocessor panel, and now
it seems to compile.
Why did it work in 8.3 ?
I spent - lost - 3 hours on this one. I really think CW should be able to
provide a more detailed error.
Eric
>> Hi,
>>
[quoted text clipped - 18 lines]
>
> Ron
MW Ron - 25 Sep 2004 02:09 GMT
>dans l'article mwron-9BB213.14522624092004@news.newsguy.com, MW Ron à
>mwron@metrowerks.com a écrit le 24/09/04 20:52 :
[quoted text clipped - 6 lines]
>I moved this pragma from the header file to the preprocessor panel, and now
>it seems to compile.
This sounds like something we did that was good. A pragma in a
precompiled header only has scope for that precompiled header. So if
you put it in there thinking that it is going to apply to your source
file you end up with errors. But if you put it in the preprocessor
panel it does apply to all source file.s
>Why did it work in 8.3 ?
My guess is before we didn't check for the pragma but we put checking in
that does now.
>I spent - lost - 3 hours on this one. I really think CW should be able to
>provide a more detailed error.
I don't disagree. It probably would make things a whole lot better.
I'll make this a suggestion for the next compiler version.
Ron
>>> Hi,
>>>
[quoted text clipped - 18 lines]
>>
>> Ron

Signature
Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
-- http://www.metrowerks.com/community --
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com