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 Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020122151548.15477.qmail@iname.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) From: "Kar Heng Chan" To: cygwin AT cygwin DOT com Date: Tue, 22 Jan 2002 23:15:48 +0800 Subject: Re: DLL And Visual Basic greetings. sorry for the slightly off topic reply... should be mingw32 stuff.. apologies. >NB: Additionally I compile with -fnative-struct. I found no >documentation for this option (Could anybody explain?) but it is used >for the gtk-port and sounds good to me :-) > from Tor Lillqvist's gtk page: "Using GTK+ in your own programs In order to use the DLLs as distributed in programs you build yourself, you must use either gcc-2.95.2, or Microsoft Visual C++. See the README.win32 file in the GLib sources. With gcc, you should use the -mno-cygwin and -fnative-struct flags. Using any other gcc setup will not work. (Hint: struct field alignment. Hint 2: msvcrt.dll.) If you don't understand what I am talking about, forget it. " did a little search.. not exactly informative, but should be enough to avoid some weird bugs. http://sources.redhat.com/ml/cygwin/1999-09/msg00517.html rgds, kh -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup 1 cent a minute calls anywhere in the U.S.! http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJ&url=http://www.getpennytalk.com -- 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/