Same _exact_ code in C and D give different results — why?

John Chapman johnch_atms at hotmail.com
Mon Jun 4 10:57:14 PDT 2012


On Monday, 4 June 2012 at 17:52:10 UTC, Mehrdad wrote:
> On Monday, 4 June 2012 at 16:37:45 UTC, Kagamin wrote:
>> On Monday, 4 June 2012 at 13:58:22 UTC, Mehrdad wrote:
>>> (@Andrej Mitrovic, mainly)
>>>
>>> So I was using your library :) and this happened:
>>>
>>> http://stackoverflow.com/questions/10878586
>>>
>>> Any ideas?
>>
>> You need to specify subsystem 4.0 or something like that, 
>> google for .def file docs on dmc site.
>
> I don't think that's the issue -- the subsystems for the C code
> is Console.

Yes, but it defaults to 3.10 - you need to specify 4 or higher.

-L/SUBSYSTEM:Console:4


More information about the Digitalmars-d mailing list