Boost logo

Boost :

From: Kirill Lapshin (kir_at_[hidden])
Date: 2003-07-26 02:59:41


David Abrahams wrote:
>>>Can that binding be used on Win32 (other than through cygwin)?
>>Yes. You have to build atlas in CygWin, but after that you can link it
>>with msvc.
> Can you point me to a procedure? AFAIK CygWin libs are a different
> format (?)

Yep, that was quite a surprise for me too.

Here is what Windows,txt in atlas/doc says:

After this is done, simply follow the instructions given in README.INSTALL,
running all command in a cygnus window. By default, ATLAS will be compiled
with the gnu gcc compiler that comes with cygnus. Gnu gcc provides better
ATLAS performance than does MSVC++ (or Watcom C), so we recommend that you
leave gcc as the compiler. The ATLAS library that is produced should be
able
to be linked in using MSVC++, if that is your programming environment of
choice.

-----

I've tried and it worked for me. Though I have not tried to call all
atlas functions.

Just make sure you are building it withh gcc 2.95 undet cygwin.
http://math-atlas.sourceforge.net/errata.html#CWgccerr

>>Atlas docs mentioned that it is possible to build atlas with msvc, but
>>no build procedure available, so it is tricky; also resulting library
>>going to be slower then one built with cygwin.
> Really? MSVC's optimizer is generally better than GCC's.
I guess that's because atlas was developed/optimized for gcc.

> Maybe I'll try to do it with Boost.Build.
I don't think you can build atlas with boost.build, but you should be
able to link to atlas.a, cblas.a. There was a bug in boost.build causing
it to change library extension to .lib for msvc toolset, but Vladimir
fixed it in M6 (I haven't verified it yet though).

HTH

--Kirill


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk