dmd + optlink Symbol Undefined _StretchDIBits@52

2019-05-02 Thread Joshua Hodkinson via Digitalmars-d-learn
Hi everyone, I am getting a linker error when compiling with dmd (v2.085.1) when using StrechDIBits from the win32 api. Error 42: Symbol Undefined _StretchDIBits@52 However with ldc (v1.15.0) the program compiles correctly. Wondering if I've missed something here, or possibly identified a b

delegates that return void + lambdas

2017-08-21 Thread Joshua Hodkinson via Digitalmars-d-learn
So I have run across the following issue while working with delegates and lambdas, --- struct Struct { int prop; } alias Func = void delegate(ref Struct); Func func = (ref s) => s.prop += 1; --- with compiler error `Error: cannot return non-void from function` I understand that the l

undefined identifier 'size_t'

2016-05-03 Thread Joshua Hodkinson via Digitalmars-d-learn
I have run into an issue compiling with dmd (version 2.071.0), it seems that the 'size_t' alias isn't resolving properly. I was wondering if someone has run into this before and if this is a bug or something I'm doing wrong? My call to dmd is: ..dmd2\windows\bin\dmd.exe -run hello.d -de -w -un

Re: undefined identifier 'size_t'

2016-05-03 Thread Joshua Hodkinson via Digitalmars-d-learn
On Wednesday, 4 May 2016 at 01:44:31 UTC, Adam D. Ruppe wrote: Is there a file called object.d in your current directory? Not anymore, Thanks for pointing that out