相关疑难解决方法(0)

预期; 在顶级声明符之后,xcode中出错

我在xcode中使用这个utils.c文件,它具有以下内容:

 #if FF_API_AVCODEC_OPEN
    int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)
    {
        return avcodec_open2(avctx, codec, NULL);
    }
Run Code Online (Sandbox Code Playgroud)

这导致Expected ; after top level declaratorxcode中的错误(在构建期间):int attribute_align_arg avcodec_open(....

为什么?我该怎么做才能解决这个问题.

谢谢.

c c++ xcode

13
推荐指数
2
解决办法
3万
查看次数

标签 统计

c ×1

c++ ×1

xcode ×1