• 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
'vector' undeclared error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'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

  • Follow-Ups:
    • Re: 'vector' undeclared error
      • From: Fritz Anderson <email@hidden>
    • Re: 'vector' undeclared error
      • From: Peter O'Gorman <email@hidden>
  • Prev by Date: IB3 plugin for custom view, how to forbid resizing in one direction?
  • Next by Date: Re: IB3 plugin for custom view, how to forbid resizing in one direction?
  • Previous by thread: Re: IB3 plugin for custom view, how to forbid resizing in one direction?
  • Next by thread: Re: 'vector' undeclared error
  • Index(es):
    • Date
    • Thread