This is the mail archive of the mailing list for the libstdc++ project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Undefined reference

Paolo Carlini wrote:

> Notice that there are no differences in the basic_string code itself 
> present in the various branches (3.2, 3.3 and 3.4) and the problem 
> appear at link time and only for dynamic linking, therefore probably 
> your guess is correct. Unfortunately I haven't made much progress yet in 
> trying to understand what is going wrong.
> Do you have any hints?

Well, the symbol is indeed stripped out by the version script.
The mangled name is 


but the version script (config/linker-map.gnu) only exports those:

    # std::string, std::wstring minus static data members

Note that only names starting with _A ... _R (or small letters) are
exported, those starting with _S appear to be deliberately stripped
(with the exception of _S_empty_rep_storage).

Unfortunately I don't understand the reasons behind this, so I
cannot say whether this symbol should be added to the script,
or else the symbol should not have been used in the first place ...


  Dr. Ulrich Weigand
  weigand at informatik dot uni-erlangen dot de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]