This is the mail archive of the
cygwin
mailing list for the Cygwin project.
R: [1.7]/usr/lib/libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16'
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com, matsuoka at nuce dot nagoya-u dot ac dot jp
- Date: Fri, 27 Nov 2009 07:42:25 +0000 (GMT)
- Subject: R: [1.7]/usr/lib/libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16'
--- Ven 27/11/09, Tatsuro MATSUOKA ha scritto:
> Hello
>
> When linking gnuplot-tikz.lua.exe, which is part of gnuplot
> for a lua related terminal, the following
> error appeared
> ???
> gcc-4? -O3 -fomit-frame-pointer? -L/usr/lib -o
> gnuplot-tikz.lua.exe???-lpangocairo-1.0
> -lcairo
> -lpangoft2-1.0 -lpixman-1 -lglitz -lpng12 -lxcb-render-util
> -lXrender -lxcb-render -lX11 -lxcb -lXau
> -lXdmcp -lpango-1.0 -lm -lfontconfig -lexpat -lfreetype -lz
> -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
> -lintl -liconv?
> /usr/lib/libcygwin.a(libcmain.o):(.text+0xa9): undefined
> reference to `_WinMain@16'
>
> What library should I link to overcome the above: undefined
> reference to `_WinMain@16' ?
>
> Regards
>
> Tatsuro
>
try to move -lm at the end, as you know the order of the lib is
important in cygwin (or in windows in general)
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple