Re: 'vector' undeclared error
Re: 'vector' undeclared error
- Subject: Re: 'vector' undeclared error
- From: Fritz Anderson <email@hidden>
- Date: Tue, 27 May 2008 13:02:25 -0500
On 27 May 2008, at 11:52 AM, Graham Randall wrote:
I have been trying to compile various examples of Altivec programs
and every
time, the compiler fails to recognise 'vector'. I am using Xcode
3.0 on a
Intel iMac running OSX 10.5.2.
...
#include <stdio.h>
int main( void )
{
#include <altivec.h>
This clears up the failure to recognize the vector keyword.
vector unsigned char v1 = (vector unsigned char)
('H','e','l','l','o',' ','W','o','r','l','d',' ','1','2','3','4');
Change the parentheses around the characters to braces (I think; I
don't have a PPC to test on).
— F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden