Re: Missing library dependencies compiling app with importC

2024-02-25 Thread DUser via Digitalmars-d-learn
On Thursday, 22 February 2024 at 01:23:36 UTC, ptcute wrote: ... So what's the real issue behind? Anyone help on this would be appreciated. They are MSVC compiler intrinsics. (https://issues.dlang.org/show_bug.cgi?id=23894) Surprisingly I got it working by just replacing some includes with

Re: Missing library dependencies compiling app with importC

2024-02-25 Thread DUser via Digitalmars-d-learn
On Sunday, 25 February 2024 at 13:36:43 UTC, ptcute wrote: Thank you for the help. I tried to modify the curl.h header exactly followinging the above information and with the above mentioned simple curl demo,unfortunately the error message are the same. Did you remove the "#include " directi

Re: Bind C++ template specialized with void parameter

2024-02-29 Thread DUser via Digitalmars-d-learn
On Wednesday, 28 February 2024 at 22:48:33 UTC, Gregor Mückl wrote: ... But how can I bind Wrapper\ in D? Specifically, how do I even express that template specialization in D syntax? Did you mean any of these? 1. Parameter specialization: ```d extern(C++, class): class Wrapper(T) {...} class

Re: Linkage question

2022-01-24 Thread duser via Digitalmars-d-learn
On Monday, 24 January 2022 at 19:41:30 UTC, frame wrote: On Monday, 24 January 2022 at 18:30:02 UTC, Stanislav Blinov wrote: The difference is in how arguments are being passed, which you seem to have discovered already :) Would like to know where the linkage format is defined, thx. It sh

Re: Is this Windows Win32 fileapi.h header accessible in D language?

2022-02-08 Thread duser via Digitalmars-d-learn
On Tuesday, 8 February 2022 at 16:10:19 UTC, BoQsc wrote: Unsure where to start, so I decided to ask here how to get use of this win32 header. https://docs.microsoft.com/en-us/windows/win32/api/fileapi/ the specific module containing that is `core.sys.windows.winbase` my trick to find these