|
From: James W. W. <os...@jw...> - 2005-05-18 16:29:09
|
On May 18, 2005, at 12:19 AM, Seth Willits wrote:
> On May 17, 2005, at 11:29 PM, James W. Walker wrote:
>
>
>> For a start, how about telling us which compiler you're using?
>> XCode 1.5, XCode 2.0, CodeWarrior 8.3, CodeWarrior 9.5?
>>
>
> gcc 4 and 3.3. The result with both is exactly the same.
>
>
>
>> Since TQ3Error is a typedef for an enumerated type, and
>> kQ3ErrorNone is a member of that enumeration, I don't see how
>> there could be a mismatch.
>>
>
>
> I have a simple chunk of code which looks like:
>
> if (Q3Error_Get(nil) != kQ3ErrorNone) {
> ...
> return kQ3Failure;
> }
I don't usually use XCode, but I made a new project and added the
debug Quesa framework from 1.7. In main.c, I added
#define QUESA_OS_MACINTOSH 1
#include <Quesa/Quesa.h>
#include <Quesa/QuesaErrors.h>
and in the main function,
if (Q3Error_Get(nil) != kQ3ErrorNone)
{
}
It compiles with no warnings or errors. Are you defining
QUESA_OS_MACINTOSH or QUESA_OS_COCOA? When using CodeWarrior,
Quesa.h will automatically turn on QUESA_OS_MACINTOSH, but it looks
like XCode users must do it themselves.
|