This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]