January 13, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11910



--- Comment #9 from Jacob Carlborg <doob@me.com> 2014-01-13 04:44:35 PST ---
(In reply to comment #8)

> Right, but shouldn't I have gotten a multiply defined symbols link error in that case?

I think in some cases it just overrides the C symbol. Not overrides, but prefers the one in D. Walter has mentioned a couple of times this is possible. It might be a Windows/Optlink only thing.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 13, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11910



--- Comment #10 from Manu <turkeyman@gmail.com> 2014-01-13 04:52:39 PST ---
(In reply to comment #9)
> (In reply to comment #8)
> 
> > Right, but shouldn't I have gotten a multiply defined symbols link error in that case?
> 
> I think in some cases it just overrides the C symbol. Not overrides, but prefers the one in D. Walter has mentioned a couple of times this is possible. It might be a Windows/Optlink only thing.

I'm linking against C code, so I have to use Win64 and the MS linker, which I'm
very familiar with.
It may be that it just chose one, but curious to know why... anyway, all good.
I'll look into that more closely later on.
False alarm, thanks for spotting my mistake! >_<

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 13, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11910



--- Comment #11 from Jacob Carlborg <doob@me.com> 2014-01-13 05:20:06 PST ---
(In reply to comment #10)

> I'm linking against C code, so I have to use Win64 and the MS linker, which I'm
> very familiar with.
> It may be that it just chose one, but curious to know why... anyway, all good.

I found this on stackoverflow[1]:

"The linker will search the files you provide on the command line first for symbols, before it searches in libraries"

[1] http://stackoverflow.com/a/19023148/1787929

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »