X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <268006.98165.qm@web25503.mail.ukl.yahoo.com> Date: Fri, 27 Nov 2009 07:42:25 +0000 (GMT) From: Marco Atzeri Subject: R: [1.7]/usr/lib/libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain AT 16' To: cygwin AT cygwin DOT com, matsuoka AT nuce DOT nagoya-u DOT ac DOT jp In-Reply-To: <20091127062418.45338.qmail@web3306.mail.ogk.yahoo.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --- Ven 27/11/09, Tatsuro MATSUOKA ha scritto: > Hello >=20 > When linking gnuplot-tikz.lua.exe, which is part of gnuplot > for a lua related terminal, the following > error appeared > =A0=A0=A0 > gcc-4=A0 -O3 -fomit-frame-pointer=A0 -L/usr/lib -o > gnuplot-tikz.lua.exe=A0=A0=A0-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=A0=20 > /usr/lib/libcygwin.a(libcmain.o):(.text+0xa9): undefined > reference to `_WinMain AT 16' >=20 > What library should I link to overcome the above: undefined > reference to `_WinMain AT 16' ? >=20 > Regards >=20 > Tatsuro >=20 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