[cfe-dev] Link error in clang but not g++

Eli Friedman eli.friedman at gmail.com
Wed Sep 14 12:19:16 PDT 2011


On Wed, Sep 14, 2011 at 12:15 PM, Holger Brandsmeier
<holger.brandsmeier at sam.math.ethz.ch> wrote:
> Eli,
>
> I tried to replace the linker with g++, but no success.
>
> Out of the three steps:
>  1) build quadratureRulesPy.cpp
>  2) quadraturePy.cpp
>  3) link
>
> I need to use g++ for step 1) (which creates the symbol
> parfem::QuadratureRules<double, 0>::QuadratureRules).
>
> I can then use clang for steps 2 and/or 3 which works nicely. If I use
> clang for step 1 then I always end up with the reported error.

Hmm... it's possible clang is using the wrong linkage.

Are you using clang from trunk?  If not, can you try?
(http://clang.llvm.org/get_started.html)

-Eli




More information about the cfe-dev mailing list