View mode: basic / threaded / horizontal-split · Log in · Help
October 14, 2012
OPTLINK is missing files when I try to include debugging info into build
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
October 14, 2012
Re: OPTLINK is missing files when I try to include debugging info into build
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
October 14, 2012
Re: OPTLINK is missing files when I try to include debugging info into build
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.
October 14, 2012
Re: OPTLINK is missing files when I try to include debugging info into build
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?
October 14, 2012
Re: OPTLINK is missing files when I try to include debugging info into build
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.
Top | Discussion index | About this forum | D home