'vector' undeclared error
'vector' undeclared error
- Subject: 'vector' undeclared error
- From: Graham Randall <email@hidden>
- Date: Tue, 27 May 2008 17:52:12 +0100
- Thread-topic: 'vector' undeclared error
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.
I have enabled the Altivec Extensions (on both Debug and Release). I have
added -faltivec to the compiler flags as well to try and get it to compile.
Still get the same message - error: 'vector' undeclared.
I added in the Accelerate framework - same result.
I loaded in the simple Hello World program from the Apple site - same
result.
#include <stdio.h>
int main( void )
{
vector unsigned char v1 = (vector unsigned char)
('H','e','l','l','o',' ','W','o','r','l','d',' ','1','2','3','4');
printf("%vc\n", v1);
return 0;
}
I'm sure this is a simple mistake I've made but I'm stuck at the moment.
Any help is appreciated.
Regards
Graham
_______________________________________________
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