[MPlayer-cygwin] undef ref to WinMain at 16 in cygwin
Joey Parrish
joey at yunamusic.com
Wed Sep 11 18:22:05 CEST 2002
On Wed, Sep 11, 2002 at 04:32:36AM +0800, Sycotic Smith wrote:
> 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.
try removing -lSDLmain from config.mak
i believe this tries to mangle main, which would make sense with the
error you are getting. please let me know if this works.
> 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
--Joey
--
"All you need is love." --Darth Vader
More information about the MPlayer-cygwin
mailing list