zoukankan      html  css  js  c++  java
  • ffmpeg ommon.h(30) : fatal error C1189: #error : missing -D__STDC_CONSTANT_MACROS / #define __STDC_

    ommon.h(30) : fatal error C1189: #error :  missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS

    原因:

    FFmpeg is written in C99, thus some features may not be compilable or usable in C++.

    Anyway, for most purposes, including FFmpeg headers in a C++ application should be rather straightforward.

    First, to include the FFmpeg headers within your C++ application you need to explicitly state that you are including C code. You can do this by encompassing your FFmpeg includes usingextern "C", like in:

    extern "C" {
    #include <libavutil/imgutils.h>
    #include <libavcodec/avcodec.h>
    #include <libswscale/swscale.h>
    }
    

    Second, you may need to append -D__STDC_CONSTANT_MACROS to your CXXFLAGS flags, if the compiler complains about ’UINT64_C’ was not declared in this scope.

     

    每天早上叫醒你的不是闹钟,而是心中的梦~
  • 相关阅读:
    JSON序列化选项
    JOSN的stringify()和parse()方法
    html5增强元素--续
    html5页面增强元素
    js继承模式
    js常用设计模式
    js跨浏览器事件处理
    前端兴趣浓厚,后端提不起来兴趣
    padding的讲究
    margin的讲究
  • 原文地址:https://www.cnblogs.com/vintion/p/4116903.html
Copyright © 2011-2022 走看看