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
1
vote
1 answer
Binary compatibility of struct in separately compiled code
Given a CPU architecture, is the exact binary form of a struct determined exactly?
For example, struct stat64 is used by glibc and the Linux kernel. I see glibc define it in sysdeps/unix/sysv/linux/x86/bits/stat.h as:
struct stat64 {
__dev_t…

Josh B
- 227
- 3
- 6
1
vote
2 answers
C++ and binary compatibility: returning a POD struct by value
Consider the following C++ code:
struct X
{
int a;
int b;
};
X foobar()
{
X x = { 1, 2 };
return x;
}
Now assume this code is put in a shared library, which is used by third-party applications.
My question is: if I…

Etienne Dechamps
- 24,037
- 4
- 32
- 31
1
vote
3 answers
Binary file from one linux to another
Is there any possible way to run binary compiled on another Linux? I know that of course the easiest is to rebuild that on another machine but lets assume that the only thing we can get is a binary file, so is it possible or not? (I know that…

greenmushroom
- 11
- 1
1
vote
0 answers
Moving final classes to another package without breaking binary compatibility
So, I have a singleton class that is final and Serializable exposed as part of the public API of my library and I want to move into another package, hopefully without breaking binary compatibility. My set up looks somewhat like this:
package…

Alex
- 7,460
- 2
- 40
- 51
1
vote
1 answer
binary compatibility vs backward compatibilty
I've been reading some details about Qt d-pointer and came across the binary compatibility term. Is this the same as backward compatibility?

Tharanga
- 2,007
- 4
- 32
- 50
1
vote
2 answers
How can I design my Java / C# library so it stays binary compatible in case of future changes?
Task: I am designing a library which will be used by developers.
Objective: I need to make sure that changes in future versions will not impact existing developers.
Example:
Situation during first release:
There is one class
public class…

Navin
- 179
- 4
1
vote
3 answers
Portable Windows application (not the source code!) with Visual C++ 2005/2008/2010?
I don't mean "portable" in a way that you can re-compile the source code under Linux or whatever, but rather a Windows-only application that does not require installation, so you just put the .exe and some dll-s in a folder and copy it to another…

Headcrab
- 6,838
- 8
- 40
- 45
1
vote
1 answer
Does changing the target cpu of a vb.net break binary compatibility?
Just like the title says, If I change the target cpu of a vb.net assembly, will it break binary compatibility?

Alex
- 343
- 1
- 5
- 13
1
vote
0 answers
Understanding Scala MiMa Output
I'm attempting to use MiMa(https://github.com/lightbend/migration-manager#usage) to determine any binary incompatibilities between argonaut-shapeless's v1.2.0-M9 and v1.2.0-M6. Please see the output, where I post what I did, as well as ask my…

Kevin Meredith
- 41,036
- 63
- 209
- 384
1
vote
1 answer
C++ using namespaces for versioning can cause inheritance problems with overrides
We are trying to namespace the versions of our API with namespaces, although we figured that we will be getting some problems with virtual functions :
namespace v1 {
class someParam {
public:
someParam() {};
virtual…

user925890
- 11
- 2
1
vote
2 answers
Use of a new annotation attribute in a pre-existing compiled context
I use the following code, in a JDK8 environment :
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Client", namespace = "http://schemas.datacontract.org/2004/07/BLA.BLA.Model.Client", propOrder =…

glebiuskv
- 321
- 4
- 13
1
vote
1 answer
Migration-Manager / binary compatibility: overriding hash-code with reference to private[this]
Why is overriding hashCode a binary incompatible change:
Before:
trait Foo extends Product
After:
trait Foo extends Product {
private[this] lazy val _hashCode = ScalaRunTime._hashCode(this)
override def hashCode: Int =…

0__
- 66,707
- 21
- 171
- 266
1
vote
2 answers
Can adding a static variable break binary compatibility on Linux?
I made some changes to a shared library on a linux platform and sent the updated library to the end user. The end user has reported that they believe the binary compatibility has been broken (not really sure how they know that).
The changes I…

default
- 2,637
- 21
- 44
1
vote
2 answers
is it binary compatible for emdebian and android?
the Android ndk is hard to use for the old autoconf based code, so i employed scratchbox2/emdebian to have a complete build environment. can i build a shared library in emdebian (arch is armel) and then use it in android?

Dyno Fu
- 8,753
- 4
- 39
- 64
1
vote
1 answer
_WIN32_WINNT definition changed in header, does this cause a binary incompatibility?
In VS2010, I'm working on updating an application to a new version of a third party library that requires _WIN32_WINNT to be at least 0x501 but another third party shared library that provides binary shared libraries defines it as 0x500 in a header…

spellmansamnesty
- 469
- 4
- 10