delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/21/11:18:33

X-Recipient: archive-cygwin AT delorie DOT 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 AT users DOT sourceforge DOT net>
User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: GTK+ externals are unresolved
References: <loom DOT 20081215T211641-645 AT post DOT gmane DOT org> <002701c95f06$c7c2e190$4001a8c0 AT mycomputer> <loom DOT 20081216T190513-304 AT post DOT gmane DOT org> <49480D5D DOT 8090002 AT x-ray DOT at> <4948117F DOT 6080208 AT users DOT sourceforge DOT net> <49495236 DOT 6080407 AT x-ray DOT at> <49497EE9 DOT 70504 AT users DOT sourceforge DOT net> <gic6i4$lju$1 AT ger DOT gmane DOT org> <4949E6FD DOT 6050508 AT users DOT sourceforge DOT net> <494D128D DOT 9080207 AT x-ray DOT at> <494D915D DOT 4060204 AT users DOT sourceforge DOT net> <loom DOT 20081221T152743-904 AT post DOT gmane DOT org>
In-Reply-To: <loom.20081221T152743-904@post.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019