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 Message-ID: <424266CF.B363166D@dessent.net> Date: Wed, 23 Mar 2005 23:05:51 -0800 From: Brian Dessent Organization: My own little world... MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to compile with gcc/cygwin for "multithreaded DLL" access? References: <65213341217E8D458E7C78E6640C749504FABFCF AT waglmb01 DOT labs DOT agilent DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com jeff_burch AT agilent DOT com wrote: > cygcheck testSicl.exe > Found: .\testSicl.exe > testSicl.exe > C:\cygwin\bin\cygwin1.dll > C:\WINDOWS\system32\ADVAPI32.DLL > C:\WINDOWS\system32\ntdll.dll > C:\WINDOWS\system32\KERNEL32.dll > C:\WINDOWS\system32\RPCRT4.dll > .\SICL32.dll > C:\WINDOWS\system32\VERSION.dll > C:\WINDOWS\system32\MSVCR70.dll It's pretty much guaranteed that your program will crash and burn if it links against both Cygwin1.dll and MSVCRT*.DLL. They both provice a C runtime, and trying to mix two implementations of that same runtime is a no-no. It looks like this sicl32 dll was linked against msvcrt, so you'll have to recompile it against cygwin1.dll. (insert friendly reminder here that anything that links with Cygwin1.dll must be released under GPL or other OSI-approved license) If you don't have the source for sicl32.dll and you're trying to create a program that depends on both it and Cygwin1.dll, then you're probably violating a license somewhere. Brian -- 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/