Code::Blocks
Daniel Keep
daniel.keep.lists at gmail.com
Mon Jun 25 06:36:53 PDT 2007
nobody wrote:
> Hello,
>
> i try to intall Code::Blocks under Windows because i want work with
> ddbg. The ddbg work an a Console but i didn't understand the usage
> from the command line. I can't find any example, anyway.
>
> I get the error message:
>
> dmd.exe -g -IC:\dd\dmd\src\phobos -IC:\dd -c C:\dd\hello.d -ofC:\dd\hello.obj
> link.exe C:\dd\hello.exe C:\dd\hello.obj phobos.lib kernel32.lib user32.lib
> OPTLINK (R) for Win32 Release 7.50B1
> Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
>
> C:\dd\hello.exe
> Error 2: File Not Found C:\dd\hello.exe
> Process terminated with status 1 (0 minutes, 0 seconds)
> 1 errors, 0 warnings
Although I'm not sure what it *should* be, I'm fairly certain that your
link.exe arguments are completely wrong. Whatever is creating that
command line is screwing up something awful.
I haven't used Code::Blocks in a while, however what I can remember was
this:
1) You set the linker command to be dmd.exe, not link.exe. dmd will
call link.exe to link everything together.
2) You may need to fiddle with the exact command line settings to get it
to work.
For instance, the link command for the above should be:
dmd -ofC:\dd\hello.exe C:\dd\hello.obj kernel32.lib user32.lib
Hope that helps.
-- Daniel
More information about the Digitalmars-d-learn
mailing list