From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26151 invoked by alias); 17 Dec 2008 19:26:27 -0000 Received: (qmail 26142 invoked by uid 22791); 17 Dec 2008 19:26:27 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from warsl404pip6.highway.telekom.at (HELO email.aon.at) (195.3.96.89) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Dec 2008 19:25:45 +0000 Received: (qmail 5951 invoked from network); 17 Dec 2008 19:25:41 -0000 Received: from 212-183-55-156.adsl.highway.telekom.at (HELO [10.0.0.5]) ([212.183.55.156]) (envelope-sender ) by smarthub92.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 17 Dec 2008 19:25:41 -0000 Message-ID: <49495236.6080407@x-ray.at> Date: Wed, 17 Dec 2008 19:26:00 -0000 From: Reini Urban User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.18) Gecko/20081031 SeaMonkey/1.1.13 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: GTK+ externals are unresolved References: <002701c95f06$c7c2e190$4001a8c0@mycomputer> <49480D5D.8090002@x-ray.at> <4948117F.6080208@users.sourceforge.net> In-Reply-To: <4948117F.6080208@users.sourceforge.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2008-12/txt/msg00428.txt.bz2 Yaakov (Cygwin/X) schrieb: > Reini Urban wrote: >> The order of libs is wrong for $(pkg-config --libs gtk+-2.0) >> >> -lgtk-x11-2.0 -lgdk-x11-2.0 should be at the end. >> >> $ pkg-config --libs gtk+-2.0 >> -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 >> -lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig >> -lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 >> -lglib-2.0 -lintl -liconv > > No, this is correct. > >> Windows need the libs in the correct order, i.e. backwards. > > No, the order is as with --as-needed on Linux, and in this case, where > all those libs are shared, the order doesn't matter at all as long as > they come after the object files which require them. I tend to disagree. With the original order: -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig -lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv it fails to link, and with the reverse order of requires it works okay. -L/usr/X11R6/lib -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft -lfreetype -lXrender -lXext -lfontconfig -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lgdk-x11-2.0 -lgtk-x11-2.0 -lX11 -lz -lintl -liconv The windows linker doesn't allow unresolved symbols at linktime, the linux linker does. -- Reini -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/