From: Robin Hu <huxw@knight.6test.edu.cn>
Cc: emacs-devel@gnu.org
Subject: Re: How about using static link instead of dynamic loaded dlls?
Date: Thu, 05 Jun 2003 10:57:18 +0000 [thread overview]
Message-ID: <uadcw4ws1.fsf@knight.6test.edu.cn> (raw)
In-Reply-To: <u8yshypz6.fsf@jasonrumney.net> (Jason Rumney's message of "05 Jun 2003 07:53:49 +0100")
>>>>> "Jason" == Jason Rumney <jasonr@gnu.org> writes:
Jason> If you explain what problems you are having, we may be able
Jason> to fix them. Linking the image libraries statically might
Jason> work well for people like yourself who compile Emacs
Jason> yourself, but in the Windows world you are the minority I am
Jason> afraid, so linking dynamically is more flexible for binary
Jason> distribution.
Well. The problems I have are really problems of lacking of
version control for dll files. These image libraries(libtiff,
libungif, libxpm, libjpeg, libpng) are also used by GTKWin32 and
some other gnu softwares which are ported to mswin. Then:
1/ These dlls are not binary compatible, so I must choose which dll
file to use when start a program, which means I have to tune my
%PATH% frequently just to make programs happy.
2/ Dlls compiled by gcc may not cooperate well with programs
compiled by msvc. When I used libjpeg from
sf.net/projects/gnuwin32, Emacs compiled by msvc failed to open
jpeg files.
These problems, I think, can not be eliminated without a
modification to the dll mechanism.
Jason> Please explain. It is very rare to find a bug in a compiler
Jason> these days. More often it is a particular optimization that a
Jason> compiler does that show up a subtle bug in the code.
While compiling with msvc with optimization turned on, Emacs will
emit an access vilation exception while load a tiff file or a png
file. I believe the problem is something related to lookup_image(),
but debug an optimized program is really hard. ;-(
next prev parent reply other threads:[~2003-06-05 10:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 3:21 How about using static link instead of dynamic loaded dlls? Robin Hu
2003-06-05 6:53 ` Jason Rumney
2003-06-05 9:05 ` Mike Woolley
2003-06-05 9:51 ` Jason Rumney
2003-06-05 12:28 ` Benjamin Riefenstahl
2003-06-05 10:57 ` Robin Hu [this message]
2003-06-05 12:06 ` Jason Rumney
2003-06-05 19:38 ` Juanma Barranquero
2003-06-05 21:26 ` Jason Rumney
2003-06-05 21:29 ` Juanma Barranquero
2003-06-05 21:52 ` Juanma Barranquero
2003-06-05 17:11 ` David Masterson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uadcw4ws1.fsf@knight.6test.edu.cn \
--to=huxw@knight.6test.edu.cn \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).