Re: "parse error before 'OBJC_STRING' token" when including evp.h from 10.4u SDK on an Intel machine
Re: "parse error before 'OBJC_STRING' token" when including evp.h from 10.4u SDK on an Intel machine
- Subject: Re: "parse error before 'OBJC_STRING' token" when including evp.h from 10.4u SDK on an Intel machine
- From: "Jeremy Higgs" <email@hidden>
- Date: Sun, 16 Apr 2006 17:16:32 +1000
Hi Mike,
Thanks for the reply! That was it! It turns out there was a define in
one of the included string files called Hash, which seemed to play
havoc in that particular header.
This is the original header (openssl/rsa.h):
int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
const EVP_MD *Hash, const unsigned char *EM, int sLen);
... and this is the pre-processor output corresponding to the same header:
int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
const EVP_MD *@"Hash", const unsigned char *EM, int sLen);
So it seems in this case that the 'Hash' attribute in the header was
replaced by the define. Something about that seems wrong to me. This
also didn't occur on a PPC (G5) box, so could it be a bug in the
compiler?
Jeremy
On 4/4/06, Mike Blaguszewski <email@hidden> wrote:
> On Apr 3, 2006, at 6:25 AM, Jeremy Higgs wrote:
>
> > So has anyone seen this? I'm stumped as to why this error would be
> > cropping up!
>
> Maybe EVP_MD is a macro that's expanding to something bad? Have you
> tried looking at the output of the Preprocess command for AFAdditions.m?
>
> --
> Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden