Discussion:
Can't compile with -g
Raynor
2008-01-09 22:58:31 UTC
Permalink
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
Ty Tower
2008-03-16 05:49:30 UTC
Permalink
Post by Raynor
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
Shouldn't the switch come between the command and the file?
C:\dmd\bin\dmd.exe -oftest10 -odobjs -g F:\test10\main.d

I have not used Windows so I don't know but I would check the position of the -g switch
Someone will come in soon who will know

Loading...