D, windows developement, frustration and fish

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 1 03:44:12 PST 2015


On Sun, 01 Feb 2015 11:37:45 +0000, Vladimir Panteleev wrote:

> On Sunday, 1 February 2015 at 11:28:51 UTC, jkpl wrote:
>> Shouldn't you compile with the following cmds ?
>>
>> dmd.exe test.d wininet.lib wininet.di -I<path_to_di_file>
> 
> wininet.lib is unnecessary because wininet.d has `pragma(lib,
> "wininet");`.
> 
> wininet.di is unnecessary because it does not contain any code, only
> declarations - an import inside test.d is sufficient. (This may not be
> true if you pull in .init of struct types, for example)

yep, without properly compiled libraries there are constant complains 
about missing structure initalizers. i got rid of that with simple 
template, and wrote "auto pi = zeroed!PROCESS_INFORMATION;" and alikes 
instead. i'm not using batch compilation, so that was easier than 
building all the libs. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150201/af8e4d9d/attachment.sig>


More information about the Digitalmars-d mailing list