emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to link new libraries when building emacs


From: Po Lu
Subject: Re: How to link new libraries when building emacs
Date: Wed, 03 Apr 2024 13:52:03 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Elijah G <eg642616@gmail.com> writes:

> Hello, i don't know if this is a good place to ask this, i'm building
> emacs with an additional library (exactly d2d1.h), however i'm getting
> errors that library isn't linking, I have been looking for how to
> solve it, but nothing, even i've tried searching in commits about
> other libraries imported but I ended up getting lost. So If anyone
> knows I would greatly appreciate it.

Unless this library exists in Windows 9X, merely linking with the
library will not suffice; it must be dynamically loaded, and its
functions avoided on systems that predate their introduction.  Grepping
for "LoadLibrary" should return plenty of examples.

Also, reading

  https://github.com/apitrace/dxsdk/blob/master/Include/d2d1.h

d2d1 is also a C++ library, while Emacs headers expect a C compiler and
probably cannot be made to compile otherwise without substantial effort
and creating a new burden on the rest of us, so it's not possible to
make use of its functionality unless we decide to require a C++ compiler
for the MS Windows port, and even then not without restricting calls to
C++ functions in files isolated from Emacs facilities which in turn
export C interfaces to such functionality.  I'm not confident that
MinGW's C++ ABI is stable enough to support loading C++ libraries at
runtime either.

> Also I would like to know where the font display source is stored,

It's divided among w32font.c, w32uniscribe.c and hbfont.c, AFAIK.

> specifically emoji support in Windows NT port.

There's no specific support for Emoji in any of those files, I think.

Finally, emacs-devel@gnu.org is a far more suitable venue for questions
regarding Emacs development.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]