www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Can't compile with -g

reply Raynor <memphis007fr yahoo.fr> writes:
C:\dmd\bin\dmd.exe  F:\test10\main.d -oftest10 -odobjs -g

C:\dmd\bin\..\..\dm\bin\link.exe objs\main,test10,,user32+kernel32/co/noi;

OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
OPTLINK : Error 118: Filename Expected

It do the same error on codeblocks, poseidon or in command line
It works if i remove -g

I have dmd 1.015 with a fresh install
Jan 10 2008
parent reply Spacen Jasset <spacenjasset yahoo.co.uk> writes:
Raynor wrote:
 C:\dmd\bin\dmd.exe  F:\test10\main.d -oftest10 -odobjs -g
 
 C:\dmd\bin\..\..\dm\bin\link.exe objs\main,test10,,user32+kernel32/co/noi;
 
 OPTLINK (R) for Win32  Release 8.00.1
 Copyright (C) Digital Mars 1989-2004  All rights reserved.
 OPTLINK : Error 118: Filename Expected
 
 It do the same error on codeblocks, poseidon or in command line
 It works if i remove -g
 
 I have dmd 1.015 with a fresh install
Try stripping down your PATH environment variable to a minimum, that may be causing it.
Jan 10 2008
parent Raynor <memphis007fr yahoo.fr> writes:
Spacen Jasset a écrit :
 Raynor wrote:
 C:\dmd\bin\dmd.exe  F:\test10\main.d -oftest10 -odobjs -g

 C:\dmd\bin\..\..\dm\bin\link.exe 
 objs\main,test10,,user32+kernel32/co/noi;

 OPTLINK (R) for Win32  Release 8.00.1
 Copyright (C) Digital Mars 1989-2004  All rights reserved.
 OPTLINK : Error 118: Filename Expected

 It do the same error on codeblocks, poseidon or in command line
 It works if i remove -g

 I have dmd 1.015 with a fresh install
Try stripping down your PATH environment variable to a minimum, that may be causing it.
You are right. I must remove a lot of paths to get it work.
Jan 10 2008