Giganews Newsgroups
Subject: msvcrt.dll
Posted by:  Paul Edwards (mutazil…
Date: Mon, 27 May 2019

I would like to make my own C runtime
library (PDPCLIB) produce a mini version
of msvcrt.dll.

Someone actually previously submitted a
code change so that PDPCLIB could be a
DLL, although I've never used that before.
They added a #define for __declspec(dllexport)
and put that against all exported function

That is fine for functions like printf,
but he also added functions like
__get_main_fp which you can see being
called here:

and being defined around here:

This prevents my executables from using
the standard msvcrt.dll, as I get a not
found error on these extra function names.

Any suggestions on how to convert PDPCLIB
to be more in tune with Microsoft?

Thanks. Paul.