C++ 在Visual Studio 2013中编译FFMPEG

C++ 在Visual Studio 2013中编译FFMPEG,c++,visual-studio,ffmpeg,libavcodec,C++,Visual Studio,Ffmpeg,Libavcodec,我需要使用visual studio express 2013编译“”的帮助 我遵循了“”中指示的解决方案,但仍然收到消息“error C1189:#missing-D#u STDC_CONSTANT_MACROS/#define#u STDC_CONSTANT_MACROS” 谢谢,请试一试,它应该有用 #include <math.h> extern "C" { #ifndef __STDC_CONSTANT_MACROS #define __STDC_CONST

我需要使用visual studio express 2013编译“”的帮助

我遵循了“”中指示的解决方案,但仍然收到消息“error C1189:#missing-D#u STDC_CONSTANT_MACROS/#define#u STDC_CONSTANT_MACROS”


谢谢,

请试一试,它应该有用

#include <math.h>
extern "C" {
    #ifndef __STDC_CONSTANT_MACROS
    #define __STDC_CONSTANT_MACROS
    #endif

    #include <libavutil/opt.h>
    #include <libavcodec/avcodec.h>
    #include <libavutil/channel_layout.h>
    #include <libavutil/common.h>
    #include <libavutil/imgutils.h>
    #include <libavutil/mathematics.h>
    #include <libavutil/samplefmt.h>
}
#包括
外部“C”{
#ifndef uu STDC u常量u宏
#定义\uu STDC\u常量\u宏
#恩迪夫
#包括
#包括
#包括
#包括
#包括
#包括
#包括
}

@ronag How and where?为什么要包含
外部“C”
?这些文件可以包含在任何没有C文件的C文件中,并且可以使用C主文件设置VC项目。