GTK+ externals are unresolved

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Sun Dec 21 16:18:00 GMT 2008


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



More information about the Cygwin mailing list