Binary compatibility is generally an ability of two hardware/software systems to run the same binary code without the need to recompile.
Questions tagged [binary-compatibility]
184 questions
4
votes
3 answers
Why binary compatibility?
I am learning PIMPL idiom. One of its advantage is binary compatibility. I am wondering what the advantages of binary compatibility are. Thanks!

user1899020
- 13,167
- 21
- 79
- 154
3
votes
2 answers
ABI compatibility header/library cross check
I have been looking around for an ABI cross-check tool. Now I have met some of the tools suggested in other questions, such as in these questions:
How to test binary compatibility automatically?
Static analysis tool to detect ABI breaks in C++
Now,…

someonelikeme
- 31
- 1
- 2
3
votes
1 answer
How to build binaries and use it in several machines in Unix?
I have source code of a compiler which I am building like this:
/path/to/srcdir/configure --prefix=/path/to/installdir
make
make install
I want to distribute the resulting 'installdir' to other machines, with the intent that anybody could use the…

Sayan
- 2,662
- 10
- 41
- 56
3
votes
2 answers
ABI compatibility of interfaces (abstract classes) with other virtual changes
Does the ABI of the view of a class remain stable even if other changes, involving virtuals, are made in the derived class?
That is, say I have an interface InterfaceA (abstract class with many pure virtual functions) and a class DerivedB that…

edA-qa mort-ora-y
- 30,295
- 39
- 137
- 267
3
votes
3 answers
C# plugin system binary compatibility issues
I've implemented a plugin system in .NET. The base library implements basic classes and interfaces exposed to plugins, the plugin libraries links the base library for using exposed classes and interfaces.
The problem I'm facing is that a (simple)…

Luca
- 11,646
- 11
- 70
- 125
3
votes
1 answer
Adding new method to Abstract Base class which has many derived classes without breaking existing base class
I have a abstract base class . There are many abstract classes which derived from this Abstract Base class
#if ABI_VERSION_ATLEAST1
class Base
{
public:
virtual void food() =0
};
#endif
for example
#if…

Rohan Uprety
- 41
- 3
3
votes
2 answers
Scala Backward Compatibility
What changes or code evolution break backward compatibility (mainly binary compatibility)? Is it fully specified anywhere?
I checked the Scala language specification, but didn't see any section on the matter like Java Language Specification Ch. 13…

notnoop
- 58,763
- 21
- 123
- 144
3
votes
2 answers
Is it safe to return a struct from an stdcall dll function?
I am designing an API that has to be binary-compatible between at least mingw and msvc++. So far I have restricted myself to using function which take and return primitive data types or pointers to POD-structs with uniform members (i.e. the members…

Medo42
- 3,821
- 1
- 21
- 37
3
votes
1 answer
Virtual Destructor causes Access Violation
I am trying to make a DLL file compatible with different compiler configurations (Debug, Release,..). In order to make sure that an object is removed the right way I managed to write a pointer wrapper class that uses a compiled delete operator…

Marcel Bonzelet
- 238
- 2
- 13
3
votes
3 answers
C++ Dynamic Library Compiling/Linking
I know that if I link my c++ program to a dynamic library (DLL) that was built with a different version of Visual Studio, it won't work because of the binary compatibility issue.
(I have experienced this with Boost library and VS 2005 and 2008)
But…

p00ya00
- 796
- 1
- 10
- 20
3
votes
4 answers
Binary compatibility of FILE*
I am designing C library which does some mathematical calculations. I need to specify serialization interface to be able to save and then load some data. The question is, is it correct (from binary compatibility point of view) to use FILE* pointer…

prokher
- 490
- 5
- 18
3
votes
2 answers
Running/compiling executable Linux vs Solaris
if i have code compiled under Solaris 8 and 10 and now have a vendor that wants to use my bin/exe under Linux. Could there be compatibility issues?
I am pretty sure i would need to compile/link under Linux OS for it to work 100% but i just wanted…

Dave Powell
- 671
- 5
- 14
- 26
3
votes
2 answers
Can I change a return type to be a strict subtype and retain binary compatibility?
If I have some class:
import java.util.Date;
public final class Foo {
private Date date;
public Date getDate(){ return date; }
}
If I have compiled this as a binary and other people have built code against it, can I subsequently do this…

oxbow_lakes
- 133,303
- 56
- 317
- 449
3
votes
1 answer
Can I recompile a public API with a sub-interface and keep binary compatibility?
I have a public API, used several times across several projects:
public interface Process {
Future> performAsync(C context);
}
And an abstract class that takes care of implementing the Future mechanism…

usr-local-ΕΨΗΕΛΩΝ
- 26,101
- 30
- 154
- 305
3
votes
0 answers
What ARM microarchitecture (ARMv4I / ARMv7) was this DLL built for?
I have inherited a blob of a VS2008 project. It has 20+ DLL’s that have been used and reused over many different projects. Some of the DLL’s are built as subprojects in VS Platform Builder. Others are built with the SDK in VS2008. In Platform…

Doug
- 2,783
- 6
- 33
- 37