Dlangui can't build x64 example1.exe , because the size_t is ulong on winx64

FrankLike via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 3 01:59:39 PDT 2014


Hi,everyone,

I build the dlangui on win7 x64,use the debug win32,it can get 
the example1.exe,
but use the debug x64,not get the exe file,the error is
	Error: function pointer FreeImage_OpenMemory (ubyte* data = 
null, uint size_in_bytes = 0u) is not callable using argument 
types (ubyte*, 
ulong)	x:\GitHub\dlangui\src\dlangui\graphics\images.d	93	

the reason is the function 'FreeImage_OpenMemory',
it decalres that 'alias da_FreeImage_OpenMemory = FIMEMORY* 
function( BYTE* data = null, DWORD size_in_bytes = 0 )' ,but it's 
args is ulong.

if the size_t not change on x64,and add the new 'longlength' 
maybe a good idea.
Many Projects want to move on x64,but must modify the error 
'size_t  is ulong'.
Then stop to do. if the size_t is not change,  maybe a good idea.

Frank.


More information about the Digitalmars-d-learn mailing list