[MPlayer-cygwin] undef ref to WinMain at 16 in cygwin

Sycotic Smith sycotic at linuxmail.org
Tue Sep 10 22:32:36 CEST 2002


I understand the auto-import warning/error, but what could be causing the undef ref?  The following error is during final linking, no out-of-the-ordinary errors/warnings up until this point.  Am I the only one getting this now?  I get it both my cygwin systems, a Win2K and a WinNT4, both FULL installs.  Latest cygwin dll as well.

gcc -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ -Ilibmpdemux -Iloader -Ilibvo    -I/usr/local/include -I/usr/local/include/SDL -Dmain=SDL_main -DWIN32 -Uunix -mcygwin  -o mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o cfgparser.o my_profile.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o mixer.o mp-opt-reg.o libvo/libvo.a  libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a libavcodec/libavcodec.a  libmpdemux/libmpdemux.a input/libinput.a postproc/libpostproc.a linux/libosdep.a        -lvorbis -logg   -Llibmpdvdkit2 -lmpdvdkit -lxvidcore  -ltermcap   -lz  -lpng -lz -ljpeg -lungif  -liconv -lipc -lm  libao2/libao2.a -L/usr/X11R6/lib -lXv -lX11 -lXext  -lggi  -L/usr/local/lib -lSDLmain -lSDL -mcygwin  -laa -lcurses -lX11
/usr/lib/libcygwin.a(libcmain.o)(.text+0x81): undefined reference to `WinMain at 16'
Info: resolving _stdscr by linking to __imp__stdscr (auto-import)
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

-- 
Get your free email from www.linuxmail.org 


Powered by Outblaze



More information about the MPlayer-cygwin mailing list