Undefined reference, using FFMpeg-library (AvCodec) on Ubuntu, 64-bits system

后端 未结 1 1827
滥情空心
滥情空心 2020-12-18 20:53

I am running the example code of the latest FFMpeg-library. I have inserted the example code into the file videofecencoder.c:

/*
* copyright (c)         


        
相关标签:
1条回答
  • 2020-12-18 21:34

    I was (finally!!) referred to the solution in the FFMpeg-mailing list: http://ffmpeg.org/faq.html#I_0027m-using-FFmpeg-from-within-my-C_002b_002b-application-but-the-linker-complains-about-missing-symbols-which-seem-to-be-available_002e

    Quote: "FFmpeg is a pure C project, so to use the libraries within your C++ application you need to explicitly state that you are using a C library. You can do this by encompassing your FFmpeg includes using extern "C"."

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