[Ffmpeg-devel] Win32 unresolved external symbol

Robert Lippmann rlippmann
Thu Sep 1 05:29:16 CEST 2005

> I use gcc.exe (GCC) 3.2.3 (mingw special 20030504-1), under
> Windows XP SP2,
> and CYGWIN_NT-5.1 installed.
> My configure command is:
> ./configure  --enable-mingw32 --enable-shared
> --source-path=c:/work/nct/ffmpeg --disable-ffserver --disable-ffplay
> --enable-memalign-hack --enable-gpl --enable-x264 --disable-encoders
> --disable-decoders --enable-codec=H264_DECODER --enable-codec=X264_ENCODER
> --enable-codec=MPEG4_DECODER --enable-codec=MPEG4_ENCODER
> --enable-codec=SPEEX_ENCODER --enable-codec=SPEEX_DECODER

It's not clear whether you are running in mingw/msys or cygwin (although it
appears from your other comments you are using cygwin).

I'm pretty sure that --enable-mingw doesn't set -mno-cygwin, so you have a
forced dll dependency on cygwin.dll

Not sure how you are using mingw's gcc with cygwin, as cygwin has its own
version of gcc.

Maybe adding --extra-cflags=-mno-cygwin to your configure line might save
you the additional hoops and automagically generate the libs and dlls
(-mno-cygwin tells cygwin's gcc to basically act as a mingw cross compiler

-- rob

More information about the ffmpeg-devel mailing list