|
Boost-Build : |
From: usovalx (A.S.Usov_at_[hidden])
Date: 2005-07-01 08:14:33
--- In jamboost_at_[hidden], "usovalx" <A.S.Usov_at_k...> wrote:
> --- In jamboost_at_[hidden], "ANDREW MARLOW, BLOOMBERG/ LONDON
> OF" <amarlow1_at_b...> wrote:
> > ----- Original Message -----
> > From: Usovalx <jamboost_at_[hidden]>
> > At: 7/ 1 13:58
> >
> > To link it cleanly here (FreeBSD with intel fortran & g++) I
have
> > to use ifort as a linker for anything having fortran code in it
> > (othervise it becomes really messy, believe me).
> >
> > AM> I believe you. But I promise you, it will be even more
> > messy of you have C++ in the mix and do not use the C++ linker.
>
> To deal with that is relatively simple -- you just add to the list
> of your libraries something like that:
>
> "`$(GCC) -print-file-name=libstdc++.so`" (or, in my case)
> "`$(GCC) -print-file-name=libstdc++.a` ``$(GCC)
> -print-file-name=libgcc.a`"
>
> I have spent already quite a time experimenting with this all by
> hands.
Sorry, forget to add it beforehand:
It's impossible to to link it using g++ at all.
It uses /usr/lib/crt{begin,end}.o as crt-startup code, and this one
doesn't works at all with intel libraries -- one should use
${IFC_HOME}/lib/crtx[i,n].o instead.
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