Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Charles Wilson Subject: Re: Bug: Win32 GTK binaries and Cygwin heap error Date: Wed, 12 Mar 2003 00:51:18 -0500 Lines: 46 Message-ID: <3E6ECAD6.60702@ece.gatech.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en In-Reply-To: Tim Renner wrote: > -- TEST SETUP -- > > Setup a cygwin environment via the cygwin installer from > http://www.cygwin.com/setup.exe, making sure to install libiconv > > To set up GTK+ 2.2, get these packages.... > > Support: > http://prdownloads.sourceforge.net/gettext/libiconv-1.8-w32-1.bin.zip?download > > http://www.gimp.org/~tml/gimp/win32/libintl-0.10.40-tml-20020904.zip > http://www.gimp.org/~tml/gimp/win32/gettext-dev-0.10.40-20020904.zip > http://www.gimp.org/~tml/gimp/win32/pkgconfig-0.14.zip > > GTK Packages: > http://www.gimp.org/~tml/gimp/win32/glib-2.2.1.zip > http://www.gimp.org/~tml/gimp/win32/glib-dev-2.2.1.zip > http://www.gimp.org/~tml/gimp/win32/atk-1.0.3-20020821.zip > http://www.gimp.org/~tml/gimp/win32/atk-dev-1.0.3-20020821.zip > http://www.gimp.org/~tml/gimp/win32/pango-1.2.1.zip > http://www.gimp.org/~tml/gimp/win32/pango-dev-1.2.1.zip > http://www.gimp.org/~tml/gimp/win32/gtk+-2.2.1.zip > http://www.gimp.org/~tml/gimp/win32/gtk+-dev-2.2.1.zip > this will not work. Those gtk libraries are native windows. They use system runtime functions provided by msvcrt.dll (e.g. printf, fopen, etc). if you compile an application using the cygwin gcc, it will by default link against cygwin1.dll, and your application will use the printf, fopen, etc functions provided by cygwin1.dll. If you build a program under cygwin, and link to those nativewindows gtk libraries, you will get a program that uses BOTH cygwin1.dll AND msvcrt.dll to resolve runtime calls. Boom. You need to use 'gcc -mno-cygwin' -- or better yet, follow Tor's instructions and use the MSYS/mingw system and not cygwin. Regardless, your problem is not mixing two different cygwin dlls. It's mixing cygwin1.dll runtime and msvcrt runtime in the same executable. --Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/