[FFmpeg-trac] #1442(avcodec:new): In MINGW32 libutvideoenc.cpp and libutvideodec.cpp do not link properly
FFmpeg
trac at avcodec.org
Mon Jun 11 23:57:13 CEST 2012
#1442: In MINGW32 libutvideoenc.cpp and libutvideodec.cpp do not link properly
-------------------------------------+-------------------------------------
Reporter: ffmpeg- | Type: defect
tester | Priority: important
Status: new | Version: 0.11.1
Component: avcodec | Blocked By:
Keywords: | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
I've tried to compile ffmpeg in Mingw 32bit environment with --enable-
libutvideo and static libutvideo. Decoder utvideo.c alone can be compiled
without problems. But if you link libavcodec with objects of c++ modules
(libutvideoenc.cpp and libutvideodec.cpp), references to functions of the
libavcodec library become invalid after that! During linking of
libavformat, gcc generates a lot of errors: "undefined reference" to many
STANDARD libavcodec functions, such as av_free_packet, av_fast_realloc
etc.
Simultaneous linking of c++ and c objects for the libavcodec component
produce incorrect results in mingw (and maybe in some other systems).
How to reproduce: try to build the latest ffmpeg in MINGW 32bit with
libutvideo and --enable-libutvideo option
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1442>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list