www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - OPTLINK is missing files when I try to include debugging info into

reply "Matt" <webwraith fastmail.fm> writes:
I was trying to check out windbg with a project I am working on. 
The program currently consists of two D files (main.d, 
Application.d) and three Derelict3 import libs (DerelictUtil, 
DerelictSDL2, DerelictGL3). Without debug info, the following 
console command runs fine;

---

dmd main.d Application.d DerelictUtil.lib DerelictSDL2.lib 
DerelictGL3.lib

---

However, no matter where I put either the -g or -gc switches, 
Optlink complains with 'Error 118: Filename Expected', and 
proceeds to spit out my PATH environment variable. I tried with 
just a 'Hello World' program that only imports 'std.stdio', and I 
get the same problem.

Could anyone explain to me what the problem is? I have the 
feeling that there is something I need to do to set up Optlink, 
however I installed from the Windows binary on dlang.org. If it 
matters, I'm running Win7
Oct 14 2012
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 10/15/12, Matt <webwraith fastmail.fm> wrote:
 However, no matter where I put either the -g or -gc switches,
 Optlink complains with 'Error 118: Filename Expected
Likely related to this: http://d.puremagic.com/issues/show_bug.cgi?id=8791
Oct 14 2012
parent reply "Matt" <webwraith fastmail.fm> writes:
On Sunday, 14 October 2012 at 22:53:11 UTC, Andrej Mitrovic wrote:
 On 10/15/12, Matt <webwraith fastmail.fm> wrote:
 However, no matter where I put either the -g or -gc switches,
 Optlink complains with 'Error 118: Filename Expected
Likely related to this: http://d.puremagic.com/issues/show_bug.cgi?id=8791
OK, so it's a bug rather than a failure on my part? That's comforting, if a little problematic.
Oct 14 2012
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 10/15/12, Matt <webwraith fastmail.fm> wrote:
 On Sunday, 14 October 2012 at 22:53:11 UTC, Andrej Mitrovic wrote:
 On 10/15/12, Matt <webwraith fastmail.fm> wrote:
 However, no matter where I put either the -g or -gc switches,
 Optlink complains with 'Error 118: Filename Expected
Likely related to this: http://d.puremagic.com/issues/show_bug.cgi?id=8791
OK, so it's a bug rather than a failure on my part? That's comforting, if a little problematic.
Likely. What does your PATH variable look like?
Oct 14 2012
parent "Matt" <webwraith fastmail.fm> writes:
On Sunday, 14 October 2012 at 23:06:19 UTC, Andrej Mitrovic wrote:
 On 10/15/12, Matt <webwraith fastmail.fm> wrote:
 On Sunday, 14 October 2012 at 22:53:11 UTC, Andrej Mitrovic 
 wrote:
 On 10/15/12, Matt <webwraith fastmail.fm> wrote:
 However, no matter where I put either the -g or -gc switches,
 Optlink complains with 'Error 118: Filename Expected
Likely related to this: http://d.puremagic.com/issues/show_bug.cgi?id=8791
OK, so it's a bug rather than a failure on my part? That's comforting, if a little problematic.
Likely. What does your PATH variable look like?
Horrific. It's full of paths to sub-directories of "C:\Program Files\". I've found that if I run "set PATH=C:\D\dmd2\windows\bin" before compiling, it works fine. If it usually takes time for this, I'll just set up a cmd shell with this reduced PATH envvar, I think.
Oct 14 2012