This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Linking propbem with gtk libraries
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Fri, 18 Nov 2005 11:14:05 -0500 (EST)
- Subject: Re: Linking propbem with gtk libraries
- References: <OFDCC5A2BD.5EE77643-ONC22570BD.004E89A3-C22570BD.004E317A@sysline.com>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
On Fri, 18 Nov 2005, Laitio Mika (Sysline) wrote:
> [snip]
> Do you know what changes are needed to "gcc -g -O2 -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 -o
> hello.exe main.o" command?
Yes. Move 'main.o' before all the '-l' flags (typical newbie mistake).
See also
<http://cygwin.com/faq/faq.programming.html#faq.programming.linker> (which
should, IMO, be extended to cover object linking as well).
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/