windos下编译ffmpeg出现错误
错误提示是:gcc is unable to create an executable file.
config错误提示是:
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: Dwarf Error: Offset (1488) greater than or equal to .debug_abbrev size (1071).
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/crt2.o:crt1.c:(.text+0x1f1): undefined reference to `__chkstk_ms'
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: Dwarf Error: Offset (6452) greater than or equal to .debug_abbrev size (1031).
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/libmingwex.a(glob.o):glob.c:(.text+0x5e3): undefined reference to `__chkstk_ms'
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: Dwarf Error: found dwarf version '0', this reader only handles version 2, 3 and 4 information.
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/libmingwex.a(glob.o):glob.c:(.text+0x690): undefined reference to `__chkstk_ms'
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: Dwarf Error: found dwarf version '20039', this reader only handles version 2, 3 and 4 information.
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/libmingwex.a(glob.o):glob.c:(.text+0x7e9): undefined reference to `__chkstk_ms'
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: Dwarf Error: found dwarf version '8259', this reader only handles version 2, 3 and 4 information.
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/libmingwex.a(glob.o):glob.c:(.text+0x82d): undefined reference to `__chkstk_ms'
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: Dwarf Error: found dwarf version '11832', this reader only handles version 2, 3 and 4 information.
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/libmingwex.a(glob.o):glob.c:(.text+0xc0d): more undefined references to `__chkstk_ms' follow
collect2: ld returned 1 exit status
C compiler test failed.
求大神指导。
[解决办法]
ffmpeg config加
--extra-libs=-lgcc \