re: Accelerate Framework
re: Accelerate Framework
- Subject: re: Accelerate Framework
- From: George Warner <email@hidden>
- Date: Fri, 22 Jul 2005 10:48:33 -0700
On Thu, 21 Jul 2005 17:08:27 -0400, Mike Jackson <email@hidden>
wrote:
> What newsgroup/mailing list should I sign up to ask questions about
> using AltiVec? I can not even get the following to compile.
>
> #include <stdio.h>
> #include <Carbon/Carbon.h>
>
> int main (int argc, const char * argv[]) {
> // insert code here...
> vector unsigned char fuckShit;
>
> printf("Hello, World!\n");
> return 0;
> }
>
> I get these errors when trying to compile:
>
> /Users/mjackson/Desktop/VecTest/main.c:8: error: 'vector' undeclared
> (first use in this function)
> /Users/mjackson/Desktop/VecTest/main.c:8: error: (Each undeclared
> identifier is reported only once
> /Users/mjackson/Desktop/VecTest/main.c:8: error: for each function it
> appears in.)
> /Users/mjackson/Desktop/VecTest/main.c:8: error: parse error before
> 'unsigned'
>
>
> I added the Carbon, CoreServices, Accelerate, vecLib.. anything else
> I am missing?
Did you tell the compiler to generate AltiVec code?
gcc needs the -faltivec flag; or in your Xcode project setting check the
"Enable AltiVec extensions" checkbox.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
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