View mode: basic / threaded / horizontal-split · Log in · Help
June 04, 2012
Same _exact_ code in C and D give different results — why?
(@Andrej Mitrovic, mainly)

So I was using your library :) and this happened:

http://stackoverflow.com/questions/10878586

Any ideas?
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
On 6/4/12, Mehrdad <wfunction@hotmail.com> wrote:
> (@Andrej Mitrovic, mainly)
>
> So I was using your library :) and this happened:
>
> http://stackoverflow.com/questions/10878586
>
> Any ideas?
>

I'm not sure where it went wrong for you. I've made a test folder
inside the samples dir, pasted your snippet to test.d and compiled it
like so:

> D:\dev\projects\DWinProgramming\Samples\Extra\Test>..\..\..\build.exe %cd%

Works for me: http://imgur.com/IIw82
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
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.
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
On Monday, 4 June 2012 at 13:58:22 UTC, Mehrdad wrote:
> Any ideas?

Optlink says HI!
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
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.
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
On Monday, 4 June 2012 at 16:20:00 UTC, Andrej Mitrovic wrote:
> On 6/4/12, Mehrdad <wfunction@hotmail.com> wrote:
>> (@Andrej Mitrovic, mainly)
>>
>> So I was using your library :) and this happened:
>>
>> http://stackoverflow.com/questions/10878586
>>
>> Any ideas?
>>
>
> I'm not sure where it went wrong for you. I've made a test 
> folder
> inside the samples dir, pasted your snippet to test.d and 
> compiled it
> like so:
>
>> D:\dev\projects\DWinProgramming\Samples\Extra\Test>..\..\..\build.exe 
>> %cd%
>
> Works for me: http://imgur.com/IIw82

what.

I guess I'll just switch to an official version of the compiler?
(What version are you on?)

(Thanks for replying!)
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
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.

Oooh, wait, that's different... I'll try that, thanks.
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
04.06.2012 17:58, Mehrdad написал:
> (@Andrej Mitrovic, mainly)
>
> So I was using your library :) and this happened:
>
> http://stackoverflow.com/questions/10878586
>
> Any ideas?

Answer posted to stackoverflow.

-- 
Денис В. Шеломовский
Denis V. Shelomovskij
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
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
June 04, 2012
Re: Same _exact_ code in C and D give different results — why?
04.06.2012 21:57, John Chapman написал:
> 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

How can we all answer the same question in the same time without 
synchronization? Looks like it's a magical time...

-- 
Денис В. Шеломовский
Denis V. Shelomovskij
« First   ‹ Prev
1 2
Top | Discussion index | About this forum | D home