www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Same _exact_ code in C and D give different results =?UTF-8?B?4oCU?=

reply "Mehrdad" <wfunction hotmail.com> writes:
( Andrej Mitrovic, mainly)

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

http://stackoverflow.com/questions/10878586

Any ideas?
Jun 04 2012
next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
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
Jun 04 2012
prev sibling next sibling parent reply "Kagamin" <spam here.lot> writes:
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.
Jun 04 2012
parent Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
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
Jun 04 2012
prev sibling next sibling parent "Kagamin" <spam here.lot> writes:
On Monday, 4 June 2012 at 13:58:22 UTC, Mehrdad wrote:
 Any ideas?

Optlink says HI!
Jun 04 2012
prev sibling next sibling parent "Mehrdad" <wfunction hotmail.com> writes:
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.
Jun 04 2012
prev sibling next sibling parent "Mehrdad" <wfunction hotmail.com> writes:
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!)
Jun 04 2012
prev sibling next sibling parent "Mehrdad" <wfunction hotmail.com> writes:
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.
Jun 04 2012
prev sibling next sibling parent Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
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
Jun 04 2012
prev sibling next sibling parent "John Chapman" <johnch_atms hotmail.com> writes:
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
Jun 04 2012
prev sibling parent "Era Scarecrow" <rtcvb32 yahoo.com> writes:
On Monday, 4 June 2012 at 18:06:56 UTC, Denis Shelomovskij wrote:
 How can we all answer the same question in the same time 
 without synchronization? Looks like it's a magical time...

Or everyone could be replying at the exact same time (the time typing the reply doesn't count towards the time); That's it! Spam the forum! j/k This would have been funnier if this was within a minute of your post :P
Jun 04 2012