mex doesn't recognize inline

后端 未结 2 1678
[愿得一人]
[愿得一人] 2021-01-20 20:57

I\'m trying to compile a matlab wrapper for libdc1394 which is a library for firewire cameras. I get a strange error involving some inline functions in a header file. I\'m

相关标签:
2条回答
  • 2021-01-20 21:09

    How to specify C99 via CFLAGS modification on the command line:

    mex -v -largeArrayDims CFLAGS="\$CFLAGS -std=C99" dc1394mex.c 
    
    0 讨论(0)
  • 2021-01-20 21:26

    Well Simons proposal was correct. Only catch I didn't know was that you can't give cflags directly to mex. You have to alter your mexopts.sh file. Also I had to remove -ansi flag because it contradicts with c99.

    0 讨论(0)
提交回复
热议问题