Error in "z_dsp.h" file

    Jul 05 2010 | 10:25 am
    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?

    • Jul 06 2010 | 9:26 am
      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
    • Jul 06 2010 | 11:42 am
      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
    • Jul 07 2010 | 1:00 pm
      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...