Error in "z_dsp.h" file

danvales82's icon

Good morning,
I'm developing a simple Max/MSP external to manage audio signals.
When I build my code, I get an error from the header "z_dsp.h".
The error is (screen snapshot attached):

    error: syntax error before 'vector'

Searching in the forum it seems that the problem comes from my setup.
I use MacOS 10.5.8 on Powerbook G4 (PPC), MaxSDK 5.1.1 (tryed also with 5.0.6) and XCode.
Could you help me please?

770.Immagine_1.png
png
danvales82's icon

Thanks a lot for your reply pizza!

The 'include (instead of #include) was a typing error, I fixed it a while after the post...sorry...
I didn't put "return 0" in main() because is a void function, I don't need to return any value. I'm not sure but I think that the problem is not there.
I tried your code but unfortunately the error still remains...any other hints?

If you need some more information about the code, or about the environment fell free to ask!
Thanks

Timothy Place's icon

Hi,

It sounds like you have a compiler setting that turns Altivec on. If you switch that off then I think you will be fine.

Cheers,
Tim

danvales82's icon

Hi Timothy, thanks a lot for your reply!

I analyzed your 'maxmspSDK.xcconfig' file from 'MaxSDK/example' and the my problem seems to be the 'MAXOS Deployment target'.
Changing this parameter to 10.4 instead of 10.5 (like in the .xcconfig file), everything works. With the 10.5 version it returns to me the "syntax error before 'vector' ".
I can't understand why...all I can say is that I'm using use MacOS 10.5.8...