Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-11-14 11:21:40

David Abrahams wrote:
> Vladimir Prus <ghost_at_[hidden]> writes:
>>I've brought back to life two tests that were broken by
>>Dave's recent commit. Dave, can you see if all tests
>>pass for you?
> Something is still not working out:

> These are functions which should have "weak linkage" (i.e. inlines) so
> that definition in multiple translation units is not a problem.

But there's not handled correctly?

> Ugh... OK, looking at "man ld" on Cygwin, it says:
> The i386 PE linker supports the -shared option, which
> causes the output to be a dynamically linked library (DLL)
> instead of a normal executable. You should name the
> output *.dll when you use this option. ...

Using output name for any purpose is odd.

> And when I shift back to the following in builtin.jam,
> declare-type NT CYGWIN : SHARED_LIB : dll : LIB : main ;
> Everything works.
> This is a real shame, because I think people expect cygwin dynamic
> libraries to end with .so. However, it really seems as though Cygwin
> isn't set up to allow that. In fact, I don't see any .so files in my
> entire Cygwin tree... so addressing this whole thing may have been
> premature.

Eeh... so we need to use "dll" with Gygwin. I'm very surprised, but
not been a cygwin user, will let you decide as you like.

I still don't understand the reason for the linking problem.

- Volodya


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at