From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robin Hu Newsgroups: gmane.emacs.devel Subject: How about using static link instead of dynamic loaded dlls? Date: Thu, 05 Jun 2003 03:21:04 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054783244 15146 80.91.224.249 (5 Jun 2003 03:20:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2003 03:20:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 05 05:20:42 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 19NlIv-0003w1-00 for ; Thu, 05 Jun 2003 05:20:41 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Nlan-000394-00 for ; Thu, 05 Jun 2003 05:39:10 +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 19NlKQ-0001Ph-7E for emacs-devel@quimby.gnus.org; Wed, 04 Jun 2003 23:22:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NlK3-0001Ci-RE for emacs-devel@gnu.org; Wed, 04 Jun 2003 23:21:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NlJv-0000zc-P6 for emacs-devel@gnu.org; Wed, 04 Jun 2003 23:21:44 -0400 Original-Received: from [210.77.38.126] (helo=ns.turbolinux.com.cn) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NlJF-0000Cn-KG for emacs-devel@gnu.org; Wed, 04 Jun 2003 23:21:02 -0400 Original-Received: from LOADLIN (gateway.cn.tlan [210.74.191.34]) (authenticated bits=0) by ns.turbolinux.com.cn (8.12.5/8.12.5) with ESMTP id h553KlkG002474 for ; Thu, 5 Jun 2003 11:20:50 +0800 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt) 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:14742 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14742 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%, because these versions are not binary compatible. And this problems can not be easily get rid of, because NtEmacs tries to load this dll via several names, such as libjpeg.dll jpeg-62.dll. We are in the hell of dlls now. I suggest to use static link instead of dynamic loaded dll files, or even more, include source files of these image libraries directly. 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). I've planned to do this, and I'd like to know if this is an acceptable idea before I really start doing this. robin.hu