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/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,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/
