Thread overview
Can't compile with -g
Jan 10, 2008
Raynor
Jan 10, 2008
Spacen Jasset
Jan 11, 2008
Raynor
January 10, 2008
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
January 10, 2008
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.
January 11, 2008
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.