• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 'vector' undeclared error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >'vector' undeclared error (From: Graham Randall <email@hidden>)

  • Prev by Date: Re: 'vector' undeclared error
  • Next by Date: Unable to debug my app on machine it wasn't built on
  • Previous by thread: Re: 'vector' undeclared error
  • Next by thread: re: 'vector' undeclared error
  • Index(es):
    • Date
    • Thread