Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-09 11:10:21


Vladimir Prus <ghost_at_[hidden]> writes:

> David Abrahams wrote:
>> CYGWIN is a platform and an environment that runs on top of NT and
>> gives the illusion of Unix. A bjam built under Cygwin will be
>> different from one built under NT.
>>
>> GCC is a separate issue; you can use the Cygwin GCC or the MinGW GCC
>> from NT. From Cygwin, you can only use Cygwin GCC. The difference
>> between Cygwin and MinGW GCC is which runtime and system libraries
>> they link to. Cygwin GCC uses the Cygwin Unix emulation layer
>> library, whereas MinGW uses the native libraries.
>
> OK, that's what I though. However: what's the difference from the build
> system POV. Are command lines the same for gcc under Cygwin and under NT.
> Or one has to use implib in NT case. Or something else?

There are two aspects:

1. How was bjam built? If it was built under Cygwin, it will use
unix-style command-lines and the facilities of the underlying
Cygwin bash shell.

2. Which compiler are you using? If you're using Cygwin GCC, you do
not *need* to use import libraries, though it is possible. If
you're using MinGW GCC, I think it is traditional to use import
libraries. I'm not sure whether it's possible to avoid it. I know
that my MinGW python extension builds use the regular Windows
Python DLL (and its import lib).

HTH,

-- 
David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk