[D-runtime] Upgraded to latest druntime, and it fails

Walter Bright walter at digitalmars.com
Sat Jan 15 11:19:21 PST 2011


..\dmd -c mydll

..\dmd mydll.obj ..\druntime\lib\gcstub.obj mydll.def -L/map

implib /noi /system mydll.lib mydll.dll
Digital Mars Import Library Manager Version 8.41n
Copyright (C) Digital Mars 2000-2004 All Rights Reserved, 
www.digitalmars.com
implib/h for help
Input is a Windows NT DLL file 'MYDLL.DLL'.
Output is a Windows NT import library.
Digital Mars Import Library Creator complete.

..\dmd testmydll mydll.lib

testmydll
DLL_PROCESS_ATTACH
Start Static Link...
foo()
Hello world!
foo() done
End...

..\dmd testmydll -version=DYNAMIC_LOAD

testmydll
Start Dynamic Link...
DLL_PROCESS_ATTACH
mydll.dll loaded
GetProcAddress succeeded
object.Error: Access Violation

--- errorlevel 1


More information about the D-runtime mailing list