Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Languages and Scripting
Showing results for 
Search instead for 
Did you mean: 

Linker error while linking with STLPort

Occasional Contributor

Linker error while linking with STLPort


I have compiled STLPort 4.5.3 on HP-UX, PA-RISC (with small code changes)

When I am linking my own program with STL using .sl the binaries are getting built, however Using the .sl file when I use these binary. It gives me errors mentioned in: DOTSL_issues.txt

When I try to link my own program with STL using the .a, the linker throws the errors mentioned in DOTA_Issues.txt

Dennis Handly
Acclaimed Contributor

Re: Linker error while linking with STLPort

You have only attached DOTA_Issues.txt. Was the number of errors with DOTSL_issues.txt, more or less?

You need to take one unsat and try to analyze it.
1) What is the source name:
namespace _STL {
template , _STL::_Eq_char_bound<_STL::char_traits>>
?? _M_read_unbuffered( ...)

2) Where is the reference:
first referenced in .../libstlport_aCC.a(istream.o))

3) Where should _M_read_unbuffered be defined?

Either is should be defined in every source that references _M_read_unbuffered. Or it should be defined in the file that explicitly instantiates _M_read_unbuffered on char and wchar_t. (Or has explicit specialization.)

Once you find what object should have that definition, you need to figure out why it isn't there.

What version of aC++ are you using? What compiler options did you use to make STLPort?