Debugging D DLL from C# app with C linkage for native Unity 5 plugin

Benjamin Thaut via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 30 00:38:07 PDT 2016


On Tuesday, 29 March 2016 at 23:41:28 UTC, Thalamus wrote:
>
> dmd <obj files omitted for brevity> dllmain.d dll.def -w -wi -g 
> -map -ofLogic.dll <res and lib files omitted for brevity> -m64 
> -debug -shared
>
> Anyone know what I should try next? Am I missing something 
> simple? :)
>
> thanks!
> Thalamus

You should be using "-gc" instead of "-g" when building 64-bit D 
programs that should be debugged with visual studio. Otherwise 
the visual studio debugger might get confused over some of the 
symbol names. (Because they contain '.')


More information about the Digitalmars-d-learn mailing list