News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Recent posts

#11
User contributions / Re: Import libraries for the U...
Last post by TimoVJL - February 10, 2026, 08:58:21 PM
Nice, no need additional MS tools

EDIT:
If someone don't need Pelles C crt and don't need commanline
#pragma nodefaultlib
void __cdecl mainCRTStartup(void)
{
void __cdecl exit(int status);
int __cdecl main(void);
exit(main());
}
#12
User contributions / Re: Import libraries for the U...
Last post by Vortex - February 10, 2026, 07:52:59 PM
Hi Timo,

Here is my report. Run the two MakeLibs.bat files to create the import libraries for both of the 32-bit and 64-bit architectures :

set p=E:\PellesC\bin
.
.
%p%\Polib.exe /MACHINE:x86 /OUT:ucrt.lib api-ms-win-crt-conio-l1-1-0.lib api-ms-win-crt-convert-l1-1-0.lib api-ms-win-crt-environment-l1-1-0.lib api-ms-win-crt-filesystem-l1-1-0.lib api-ms-win-crt-heap-l1-1-0.lib api-ms-win-crt-locale-l1-1-0.lib api-ms-win-crt-math-l1-1-0.lib api-ms-win-crt-multibyte-l1-1-0.lib api-ms-win-crt-process-l1-1-0.lib api-ms-win-crt-runtime-l1-1-0.lib api-ms-win-crt-stdio-l1-1-0.lib api-ms-win-crt-string-l1-1-0.lib api-ms-win-crt-time-l1-1-0.lib api-ms-win-crt-utility-l1-1-0.lib

Polib reports some warning messages bot they are not harmful :

POLIB: warning: No symbols added from 'api-ms-win-crt-convert-l1-1-0.dll'; thismember will never be seen by the linker.
POLIB: warning: No symbols added from 'api-ms-win-crt-environment-l1-1-0.dll'; this member will never be seen by the linker.
POLIB: warning: No symbols added from 'api-ms-win-crt-filesystem-l1-1-0.dll'; this member will never be seen by the linker.
POLIB: warning: No symbols added from 'api-ms-win-crt-heap-l1-1-0.dll'; this member will never be seen by the linker.
.
.
.
POLIB: warning: No symbols added from 'api-ms-win-crt-string-l1-1-0.dll'; this member will never be seen by the linker.
POLIB: warning: No symbols added from 'api-ms-win-crt-time-l1-1-0.dll'; this member will never be seen by the linker.
POLIB: warning: No symbols added from 'api-ms-win-crt-utility-l1-1-0.dll'; thismember will never be seen by the linker.

Simple example built with Pelles C :

\PellesC\bin\podump.exe /IMPORTS Test.exe

Dump of Test.exe

File type: EXE

        Imported symbols

        api-ms-win-crt-stdio-l1-1-0.dll

          406128 import address table
          406064 import name table
              0 time date stamp (Thu Jan  1 03:00:00 1970)
              0 index of first forwarder reference

        hint  name
          0  __acrt_iob_func
          0  __stdio_common_vfprintf

        api-ms-win-crt-string-l1-1-0.dll

          406134 import address table
          406070 import name table
              0 time date stamp (Thu Jan  1 03:00:00 1970)
              0 index of first forwarder reference

        hint  name
          0  _strupr

        api-ms-win-crt-filesystem-l1-1-0.dll

          40613C import address table
          406078 import name table
              0 time date stamp (Thu Jan  1 03:00:00 1970)
              0 index of first forwarder reference

        hint  name
          0  _getdrives
#13
Downloads / PellesC Version 13.00
Last post by Christian - February 10, 2026, 11:36:57 AM
PellesC Version 13.00

May 21, 2025

For 64-bit Windows 7/8/10 host, targeting 32-bit or 64-bit Windows Vista/7/8/10.
#14
User contributions / Re: Import libraries for the U...
Last post by Vortex - February 09, 2026, 12:30:20 PM
Hi Timo,

I will try it with the latest release of Polink.
#15
Tips & tricks / Re: Silly test for msvcrt and ...
Last post by TimoVJL - February 09, 2026, 11:18:26 AM
That silly test used only ucrtbase.dll, as those Api Stub forwanders mostly point to it.
Making ucrt.lib is more demanding, as have to collect those (stupid) forwanders are mostly used for versioning, and with no code.
#16
User contributions / Re: Import libraries for the U...
Last post by TimoVJL - February 09, 2026, 11:12:01 AM
Is it possible to build that ucrt.lib with polib.exe too ?
#17
Tips & tricks / Re: Silly test for msvcrt and ...
Last post by jack - February 08, 2026, 06:26:31 PM
thanks Vortex
#18
Tips & tricks / Re: Silly test for msvcrt and ...
Last post by Vortex - February 08, 2026, 06:06:16 PM
Hi Jack,

It's easy to build and use the import library for ucrt :

Import libraries for the Universal C Runtime :

https://forum.pellesc.de/index.php?topic=11052.0

Universal C Runtime example :

https://forum.pellesc.de/index.php?topic=11054.0
#19
Tips & tricks / Re: Silly test for msvcrt and ...
Last post by TimoVJL - February 08, 2026, 03:33:53 PM
We can test this too ?
...
static unsigned __int64 _OptionsStorage; // local option storage
...
psprintf(((ULONGLONG)&_OptionsStorage|_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR), buf, sizeof(buf), fmt, NULL, vl);
...
#20
Tips & tricks / Re: Silly test for msvcrt and ...
Last post by jack - February 08, 2026, 01:49:28 PM
with uppercase option D I get a bit more info
0000000140005048 <options>:
   140005048: 24 00                and    al,0x0
   14000504a: 00 00                add    BYTE PTR [rax],al
   14000504c: 00 00                add    BYTE PTR [rax],al
...