[FFmpeg-trac] #2049(build system:closed): msvc: --extra-cflags="-MD" leads to unresolved externals

FFmpeg trac at avcodec.org
Mon May 6 10:27:35 CEST 2013


#2049: msvc: --extra-cflags="-MD" leads to unresolved externals
-------------------------------------+-------------------------------------
             Reporter:  Piroxiljin   |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  build
              Version:  git-master   |  system
             Keywords:  msvc         |               Resolution:  fixed
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Piroxiljin):

 Well.

 {{{
 ./configure --toolchain=msvc --extra-cflags="-MD"
 make ffmpeg.exe
 }}}
 now produces executable, but
 {{{
 ./configure --toolchain=msvc --extra-cflags="-MD"
 make
 }}}
 produces link error
 {{{
 HOSTLD  doc/print_options.exe
 cl : Command line warning D9002 : ignoring unknown option '-lm'
 cl : Command line warning D9024 : unrecognized source file type
 'doc/print_optio
 ns.o', object file assumed
 print_options.o : error LNK2001: unresolved external symbol _avpriv_strtod
 print_options.o : error LNK2001: unresolved external symbol
 _avpriv_snprintf
 doc/print_options.exe : fatal error LNK1120: 2 unresolved externals
 make: *** [doc/print_options.exe] Error 1
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2049#comment:12>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list