www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - D on monoDevelop : can't compile in Debug mode

reply Minas <minas_mina1990 hotmail.co.uk> writes:
I have started learning D a few days ago, and I absolutely love it!

However text editors do not satisfy me when writing code - I want to have an
IDE with code completion.

So I downloaded mono developed, which seems really good. I configured dmd and
everything works ok. I can build a project, run it, and even use some C
functions inside D.

However, the above work only in Release Mode! In Debug Mode I get an error
message that tells me nothing!

First, let me show you my code:

[code]
extern (C) int factorial(int); // in factorial.obj

import std.stdio;

void main()
{
	writeln(factorial(10));
}
[/code]

Note that the above works in release mode.
When trying to compile in debug mode, I get:

Error: Build failed - check build output for details (D_Test)

In the obj/debug folder that mono develop creates, I can see the file main.obj
but there is no executable in bin/debug! Does this have something to do with
linking?

Thank you in advance.
Mar 01 2012
parent reply "alex" <info alexanderbothe.com> writes:
 Error: Build failed - check build output for details (D_Test)
Could you send that build log then, please? There's a button next to the filter buttons in the build log panel in MonoDevelop, just click on it, and the build log gets visible :)
Mar 01 2012
parent reply "Minas" <minas_mina1990 hotmail.co.uk> writes:
On Thursday, 1 March 2012 at 18:22:56 UTC, alex wrote:
 Error: Build failed - check build output for details (D_Test)
Could you send that build log then, please? There's a button next to the filter buttons in the build log panel in MonoDevelop, just click on it, and the build log gets visible :)
Hi Alex - you are the developer of this plugin right? I came by your website today and posted a comment there as well :) Anyway, here's the log: Building: D_Test (Debug) Performing main compilation... Build Project C:\D\dmd2\windows\bin\dmd.exe -c "main.d" -of"C:\Users\Minas\Documents\Monodevelop\D\D_Test\D_Test\obj\Debug\main.obj" -I"C:\D\dmd2\src\phobos" -I"C:\D\dmd2\src\druntime\import" -I"C:\Development\glad" -gc -debug C:\D\dmd2\windows\bin\dmd.exe -gc -debug -of"C:\Users\Minas\Documents\Monodevelop\D\D_Test\D_Test\bin\Debug\D_Test.exe" "obj\Debug\main.obj" OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html OPTLINK : Error 118: Filename Expected Path=C:\Program Files (x86)\GtkSharp\2.12\\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\CMake 2.8\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Common Files\GTK\2.0\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Ruby192\bin;C:\Program Files (x86)\Java\jdk1.6.0_26\bin;C:\Users\Minas\programming\My Tools;C:\pspsdk\bin;C:\Program Files (x86)\Notepad++ ^ --- errorlevel 1 Exit code 1 Build complete -- 1 error, 0 warnings ---------------------- Done ---------------------- Build: 1 error, 0 warnings
Mar 02 2012
next sibling parent reply "alex" <info alexanderbothe.com> writes:
Could you build it again with release configuration and send me 
the build log again? So I'll be able to compare what's missing 
then
Mar 02 2012
parent "Minas" <minas_mina1990 hotmail.co.uk> writes:
Building: D_Test (Release)



Performing main compilation...



Build Project

C:\D\dmd2\windows\bin\dmd.exe -c "main.d" 
-of"C:\Users\Minas\Documents\Monodevelop\D\D_Test\D_Test\obj\Release\main.obj" 
-I"C:\D\dmd2\src\phobos" -I"C:\D\dmd2\src\druntime\import"  -O 
-release

C:\D\dmd2\windows\bin\dmd.exe -O -release 
-of"C:\Users\Minas\Documents\Monodevelop\D\D_Test\D_Test\bin
Release\D_Test.exe" 
"obj\Release\main.obj"

Build complete -- 0 errors, 0 warnings



---------------------- Done ----------------------


Build successful.
Mar 02 2012
prev sibling parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 3/2/2012 12:25 PM, Minas wrote:
 On Thursday, 1 March 2012 at 18:22:56 UTC, alex wrote:
 Error: Build failed - check build output for details (D_Test)
Could you send that build log then, please? There's a button next to the filter buttons in the build log panel in MonoDevelop, just click on it, and the build log gets visible :)
Hi Alex - you are the developer of this plugin right? I came by your website today and posted a comment there as well :) Anyway, here's the log: Building: D_Test (Debug) Performing main compilation... Build Project C:\D\dmd2\windows\bin\dmd.exe -c "main.d" -of"C:\Users\Minas\Documents\Monodevelop\D\D_Test\D_Test\obj\Debug\main.obj" -I"C:\D\dmd2\src\phobos" -I"C:\D\dmd2\src\druntime\import" -I"C:\Development\glad" -gc -debug C:\D\dmd2\windows\bin\dmd.exe -gc -debug -of"C:\Users\Minas\Documents\Monodevelop\D\D_Test\D_Test\bin\Debug\D_Test.exe" "obj\Debug\main.obj" OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html OPTLINK : Error 118: Filename Expected Path=C:\Program Files (x86)\GtkSharp\2.12\\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\CMake 2.8\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Common Files\GTK\2.0\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Ruby192\bin;C:\Program Files (x86)\Java\jdk1.6.0_26\bin;C:\Users\Minas\programming\My Tools;C:\pspsdk\bin;C:\Program Files (x86)\Notepad++
optlink stumbles over '+' in the PATH environment variable: http://d.puremagic.com/issues/show_bug.cgi?id=4831 http://d.puremagic.com/issues/show_bug.cgi?id=5860
Mar 02 2012
parent "Minas" <minas_mina1990 hotmail.co.uk> writes:
Thank you very much!!!!!!!
Mar 02 2012