Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6909737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:43:37+00:00 2026-05-27T08:43:37+00:00

STL Binary Interfaces I’m curious to know if anyone is working on compatible interface

  • 0

STL Binary Interfaces

I’m curious to know if anyone is working on compatible interface layers for STL objects across multiple compilers and platforms for C++.

The goal would be to support STL types as first-class or intrinsic data types.

Is there some inherent design limitation imposed by templating in general that prevents this? This seems like a major limitation of using the STL for binary distribution.

Theory – Perhaps the answer is pragmatic

  1. Microsoft has put effort into .NET and doesn’t really care about C++ STL support being "first class".

  2. Open-source doesn’t want to promote binary-only distribution and focuses on getting things right with a single compiler instead of a mismatch of 10 different versions.

This seems to be supported by my experience with Qt and other libraries – they generally provide a build for the environment you’re going to be using. Qt 4.6 and VS2008 for example.

References:

  • http://code.google.com/p/stabi/
  • Binary compatibility of STL containers
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:43:38+00:00Added an answer on May 27, 2026 at 8:43 am

    I think the problem preceeds your theory: C++ doesn’t specify the ABI (application binary interface).

    In fact even C doesn’t, but being a C library just a collection of functions (and may be global variables) the ABI is just the name of the functions themselves. Depending on the platform, names can be mangled somehow, but, since every compiler must be able to place system calss, everything ends up using the same convention of the operating system builder (in windows, _cdecl just result in prepending a _ to the function name.

    But C++ has overloading, hence more complex mangling scheme are required.
    As far as of today, no agreement exists between compiler manufacturers about how such mangling must be done.
    It is technically impossible to compile a C++ static library and link it to a C++ OBJ coming from another compiler. The same is for DLLs.

    And since compilers are all different even for compiled overloaded member functions, no one is actually affording the problem of templates.

    It CAN technically be afforded by introducing a redirection for every parametric type, and introducing dispatch tables but … this makes templated function not different (in terms of call dispatching) than virtual functions of virtual bases, thus making the template performance to become similar to classic OOP dispatching (although it can limit code bloating … the trade-off is not always obvious)

    Right now, it seems there is no interest between compiler manufacturers to agree to a common standard since it will sacrifice all the performance differences every manufacturer can have with his own optimization.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a binary search algorithm that is compatible with the C++ STL containers,
Do you know, please, if C++ STL contains a Binary Search Tree (BST) implementation,
i am reading in a binary file via the usual c++/STL/iostream syntax. i am
I'm attempting a simple test of binary file I/O using the STL copy algorithm
One can use the STL binary search algorithms (binary_search, upper_bound, lower_bound) to search a
Is there anything like STL in Visual Basic , e.g a binary tree ,
I'm having some difficulties while parsing a binary STL file with Python (2.7.1 32-bit
The STL commonly defines an output iterator like so: template<class Cont> class insert_iterator :
In the STL almost all containers have an erase function. The question I have
Typically you will find STL code like this: for (SomeClass::SomeContainer::iterator Iter = m_SomeMemberContainerVar.begin(); Iter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.