December 17, 2012
On Mon, 2012-12-17 at 20:37 +0100, David Nadlinger wrote:
> On Monday, 17 December 2012 at 19:29:04 UTC, Russel Winder wrote:
[…]
> Your program seems to be missing a main() function, the rest is just noise (DMD emits certain symbols to the main module only).

Indeed. I guess I just failed to read the message on the grounds it was mentioning stuff I had no interest in.  My problem I guess.

Thanks for the "heads up".

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


December 17, 2012
On Monday, 17 December 2012 at 20:09:01 UTC, Russel Winder wrote:
> Indeed. I guess I just failed to read the message on the grounds it was
> mentioning stuff I had no interest in.  My problem I guess.

DMD from Git master should emit an explicit error for this now (by parsing the linker output).

Hm, I guess I still have to port it to LDC, though.

David
December 31, 2012
On Mon, Dec 17, 2012 at 07:28:53PM +0000, Russel Winder wrote:
> On Mon, 2012-12-17 at 11:08 -0800, H. S. Teoh wrote:
[...]
> > Anyway.  The command is missing a "-L-L." option. It should read:
> > 
> > 	/usr/src/d/dmd/src/dmd -ofprog prog.o -L-L. -L-lmylib
> > 
> > which passes a "-L." option to the linker to make it search the current directory for the library.
[...]

Hi Russel,

Just wondering if there's any update on this issue. I did a 'hg pull; hg update', which pulled in a bunch of updates, but the '-L-L.' option is still missing from the link command.

So I'm temporarily using a git branch for my project that manually links in the library sources instead of building a static library. A rather ugly situation; I'm hoping that I can stop doing this soon.

Thanks!


T

-- 
Don't throw out the baby with the bathwater. Use your hands...
December 31, 2012
On Sun, 2012-12-30 at 20:32 -0800, H. S. Teoh wrote:
[…]
> Just wondering if there's any update on this issue. I did a 'hg pull; hg update', which pulled in a bunch of updates, but the '-L-L.' option is still missing from the link command.

The period Dec 20 → Jan 2 is a (generally far too short) sequence of celebrations of various things. Very little tends to get done other than eating, drinking and photography.

I think I have just spotted the problem that was distracting me when trying to make your test work: I have ldc in a personal location rather than the main location. SCons is supposed not to use personal paths so ldc should not be present for the tests so the ldc tests should be skipped.  My code for handling this is rubbish. And wrong.

> So I'm temporarily using a git branch for my project that manually links in the library sources instead of building a static library. A rather ugly situation; I'm hoping that I can stop doing this soon.

So am I :-)

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


December 31, 2012
On Sun, 2012-12-30 at 20:32 -0800, H. S. Teoh wrote:
[…]
> Just wondering if there's any update on this issue. I did a 'hg pull; hg update', which pulled in a bunch of updates, but the '-L-L.' option is still missing from the link command.
[…]

I have put a "quick hack" in place to make things work. This is clearly a "hack" and needs doing properly, but as it is the smallest change that makes the tests work, it is the correct solution!

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


December 31, 2012
On Mon, Dec 31, 2012 at 12:15:07PM +0000, Russel Winder wrote:
> On Sun, 2012-12-30 at 20:32 -0800, H. S. Teoh wrote:
> […]
> > Just wondering if there's any update on this issue. I did a 'hg pull; hg update', which pulled in a bunch of updates, but the '-L-L.' option is still missing from the link command.
> […]
> 
> I have put a "quick hack" in place to make things work. This is clearly a "hack" and needs doing properly, but as it is the smallest change that makes the tests work, it is the correct solution!
[...]

It works now!!! Thanks for the prompt response!


T

-- 
Don't throw out the baby with the bathwater. Use your hands...
1 2
Next ›   Last »