X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <494E6C10.8030408@users.sourceforge.net>
Date: Sun, 21 Dec 2008 10:17:20 -0600
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: GTK+ externals are unresolved
References: <loom.20081215T211641-645@post.gmane.org> <002701c95f06$c7c2e190$4001a8c0@mycomputer> <loom.20081216T190513-304@post.gmane.org> <49480D5D.8090002@x-ray.at> <4948117F.6080208@users.sourceforge.net> <49495236.6080407@x-ray.at> <49497EE9.70504@users.sourceforge.net> <gic6i4$lju$1@ger.gmane.org> <4949E6FD.6050508@users.sourceforge.net> <494D128D.9080207@x-ray.at> <494D915D.4060204@users.sourceforge.net> <loom.20081221T152743-904@post.gmane.org>
In-Reply-To: <loom.20081221T152743-904@post.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

M.O.D. wrote:
> Thanks for your comments, Yaakov.  As you suspected, the order of the link
> libraries made no difference.
> 
> I downloaded all of Cygwin at one time, in about an hour.  I have not done
> anything I know of that would mix versions.  If there is some kind of library
> mismatch, I have no idea what to do about it.  I am going to run setup again
> today, in order to download whatever updates have become available since I first
> installed a couple of weeks ago.
> 
> Any other recommendations?

First, make sure that your -devel packages are installed properly:

pkg-config --modversion gtk+-2.0

Second, as mentioned earlier, the libs must follow the object files, IOW:

gcc -o murg murg.c `pkg-config --cflags --libs gtk+-2.0`

(The placement of the cflags doesn't matter; only the libs.  Doing it
like this makes for only one pkg-config call instead of two.)

You're simple test case doesn't appear to use any new APIs, so that
should work.


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAklObBAACgkQpiWmPGlmQSNGiwCgmWieFa+5yoxnB5ceXIDEBcld
bcwAniDDwEPe7B2xa9OX/mNLfiVWhu88
=EjK1
-----END PGP SIGNATURE-----

--
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/

