[Audacity-devel] cygwin build problem with libogg
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: <ckp...@pa...> - 2004-08-02 16:05:50
|
I am trying to build audacity with cygwin. I'm following the compile.txt document in the win directory. When I get to step 4 (Cygwin STEP 4: Enable Ogg Vorbis Support) #3 (make), I get the same error every time, "undefined reference to `_WinMain@16'". Here is a more detailed stack trace: generating symbol list for `libogg.la' dlltool --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEnt ryPoint@12 --output-def .libs/cygogg-0.dll-def framing.lo bitwise.lo sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < .libs/cygogg-0.dll-def > .libs/libogg.exp if test "x`sed 1q .libs/libogg.exp`" = xEXPORTS; then cp .libs/libogg.exp .libs/cygogg-0.dll-def; else echo EXPORTS > .libs/cygogg -0.dll-def; _lt_hint=1; cat .libs/libogg.exp | while read symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >> .libs/cygogg-0.dll-def;; 4) echo " $2 $3 $4 ; " >> .libs/cygogg-0.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) echo " $2 @ $_lt_hi nt $3 ; " >> .libs/cygogg-0.dll-def;; esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi gcc -Wl,--base-file,.libs/cygogg-0.dll-base -Wl,-e,__cygwin_dll_entry@12 -o .libs/cygogg-0.dll framing.lo bitwise.lo /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7a): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status make[1]: *** [libogg.la] Error 1 make[1]: Leaving directory `/cygdrive/c/cpp/audacity/audacity-1.2/audacity/lib-src/libogg/src' make: *** [all-recursive] Error 1 Has anyone else run into this? Do I need some sort of cygwin patch to fix this? Please help!!! Thanks! Chris |