News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Masm32 v11

Started by ragdog, September 17, 2015, 07:45:31 PM

Previous topic - Next topic

ragdog

Hello Hutch and other

I playing to time with Cpp i build a Library and include it in my Masm32 project
after i build my project have i error messages.


Mytest.lib : error LNK2001: unresolved external symbol __alldiv
Mytest.lib  : error LNK2001: unresolved external symbol __allrem
Mytest.lib  : error LNK2001: unresolved external symbol __alldvrm
Mytest.lib  : error LNK2001: unresolved external symbol __aulldiv
Mytest.lib  : error LNK2001: unresolved external symbol __allmul


Now I have researched which Dll are exports this Apis
I have think it comes from a Crt but it comes from the Ntdll.dll


LIBRARY NTDLL.DLL
EXPORTS
_alldiv
_alldvrm
_alldvrm@16
_allmul
_allrem@16
_allshl
_allshr
_atoi64
_aulldiv
_aulldvrm
_aullrem
_aullshr
_fltused DATA
_vsnprintf
_stricmp
_strnicmp
_vsnprintf
_vsnprintf_s
_vsnwprintf
_vsnwprintf_s
_vswprintf
vsprintf
vsprintf_s
vswprintf_s
wcscat
wcsncat
wcsncmp
wcsncmp


Now look i in Masm32 v10 sdk and v11 and both includes these api missing in the Ntdll.inc

why this? or can you add this?


Regards,


MichaelW

Microsoft used to have the source for at least some of those routines available online, but now I can't find any on a Microsoft site, but I do find:

http://www.jbox.dk/sanos/source/lib/lldiv.asm.html
http://www.jbox.dk/sanos/source/lib/new.llmul.asm.html

Well, I didn't try hard enough (and this is from the site I remember):

http://research.microsoft.com/en-us/um/redmond/projects/invisible/src/crt/md/i386/_ulldiv.c.htm

But with 64-bit code, you don't need the routines.
Well Microsoft, here's another nice mess you've gotten us into.

ragdog

Hello Michael

Yes i know this files is include in all visual studio "\VC\crt\src\intel"

But i need it for my project in Masm32 and i have created a new Ntdll.lib

I wonder me only this function is exported from Ntdll.dll since Windows Xp (think, i look in the Xp Ntdll.dll)
But the Masm32 package v10 and v11 does not contain it.