From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: How about using static link instead of dynamic loaded dlls? Date: 05 Jun 2003 07:53:49 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054796074 30408 80.91.224.249 (5 Jun 2003 06:54:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2003 06:54:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 05 08:54:33 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Nodt-0007uJ-00 for ; Thu, 05 Jun 2003 08:54:33 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Novp-0005HP-00 for ; Thu, 05 Jun 2003 09:13:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NoeC-00036a-Od for emacs-devel@quimby.gnus.org; Thu, 05 Jun 2003 02:54:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NodV-0002It-I3 for emacs-devel@gnu.org; Thu, 05 Jun 2003 02:54:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NodL-0001j5-Tg for emacs-devel@gnu.org; Thu, 05 Jun 2003 02:54:01 -0400 Original-Received: from server0011.freedom2surf.net ([194.106.56.14] helo=server0027.freedom2surf.net) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NodL-0001eB-0D for emacs-devel@gnu.org; Thu, 05 Jun 2003 02:53:59 -0400 Original-Received: from wanchan.jasonr.f2s.com ([195.137.103.251]) h556rvPW025532; Thu, 5 Jun 2003 06:53:58 GMT Original-Received: from NYAUMO (nyaumo.jasonr.f2s.com [10.0.0.27]) by wanchan.jasonr.f2s.com (Postfix) with ESMTP id 0CEA4DDF15; Thu, 5 Jun 2003 07:53:57 +0100 (BST) Original-To: Robin Hu In-Reply-To: Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14748 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14748 Robin Hu writes: > Hi everyone: > > Current CVS NtEmacs snapshot loads libjpeg.dll in runtime. This > causes a problem while I have some different versions of libjpeg.dll > in %PATH% If you explain what problems you are having, we may be able to fix them. Linking the image libraries statically might work well for people like yourself who compile Emacs yourself, but in the Windows world you are the minority I am afraid, so linking dynamically is more flexible for binary distribution. It should be fairly straightforward to produce a patch that allows either static or dynamic linking as a configure option, but I do not have time to do this myself. > This should be helpful to avoid dll hell, and may also helpful to > workaround VC's bug in compiling w32fns.c(this bug will not > re-produced while compiling w32fns.c with intel c compiler, so I > believe this is a bug of VC itself). Please explain. It is very rare to find a bug in a compiler these days. More often it is a particular optimization that a compiler does that show up a subtle bug in the code.